]> git.mjollnir.org Git - s9y.git/commitdiff
Put in session ID to prevent iframe reloads
authorgarvinhicking <garvinhicking>
Tue, 30 May 2006 10:52:43 +0000 (10:52 +0000)
committergarvinhicking <garvinhicking>
Tue, 30 May 2006 10:52:43 +0000 (10:52 +0000)
include/functions_entries.inc.php

index a16c5465b97f05b38bece1a8a290a2acd44825e3..9bd9df43ab8eec585b97abb3eb83b2e59a201c13 100644 (file)
@@ -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);