--- a/Gorilla.php Sun May 31 00:48:53 2009 -0400
+++ b/Gorilla.php Sun May 31 01:01:05 2009 -0400
@@ -551,14 +551,15 @@
$perms = $session->fetch_page_acl($paste_id, 'Paste');
$localhash = false;
+ $hash = gorilla_sign($paste_id, $paste_text);
if ( $paste_flags & PASTE_PRIVATE )
{
- $localhash = gorilla_sign($paste_id, $paste_text);
+ $localhash = $hash;
}
if ( $paste_flags & PASTE_PRIVATE || isset($_GET['delete']) )
{
- if ( @$_GET['hash'] !== $localhash )
+ if ( @$_GET['hash'] !== $hash )
{
// allow viewing regardless if mod or admin
if ( !($session->user_level >= USER_LEVEL_MOD && !isset($_GET['delete'])) )