From: garvinhicking Date: Tue, 30 May 2006 10:52:43 +0000 (+0000) Subject: Put in session ID to prevent iframe reloads X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e57c72437cc834bbc70f973b61a6cfad026682c8;p=s9y.git Put in session ID to prevent iframe reloads --- 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);