From e57c72437cc834bbc70f973b61a6cfad026682c8 Mon Sep 17 00:00:00 2001
From: garvinhicking <garvinhicking>
Date: Tue, 30 May 2006 10:52:43 +0000
Subject: [PATCH] Put in session ID to prevent iframe reloads

---
 include/functions_entries.inc.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php
index a16c546..9bd9df4 100644
--- a/include/functions_entries.inc.php
+++ b/include/functions_entries.inc.php
@@ -1184,6 +1184,9 @@ function serendipity_updertEntry($entry) {
         return $res;
     }
 
+    // Reset session data, so that a reload to this frame should not happen!
+    $_SESSION['save_entry']['id'] = (int)$entry['id'];
+
     if (!serendipity_db_bool($entry['isdraft'])) {
         serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true, 'from' => 'functions_entries:updertEntry'));
         serendipity_handle_references($entry['id'], $serendipity['blogTitle'], $entry['title'], $entry['body'] . $entry['extended'], $newEntry);
-- 
2.39.5