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

index 8b997e38c1aee93a802d647de786091067efd599..a6e22819d8ead0d44d47485f14f9d616274bc7ab 100644 (file)
@@ -1177,6 +1177,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);