From: garvinhicking Date: Tue, 30 May 2006 10:52:50 +0000 (+0000) Subject: prevent iframe reloads X-Git-Tag: 1.0~14 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2447df3215b5a92a272e535c820b448d76553c3b;p=s9y.git prevent iframe reloads --- diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 8b997e3..a6e2281 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -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);