Gorilla.php
changeset 3 6fe9c484bb26
parent 2 b6178b40aa09
child 4 58780df3147b
--- 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'])) )