Skip to content

Commit db66042

Browse files
author
cese
committed
Fix security issue
1 parent 09d39a9 commit db66042

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ function processPasteDelete($pasteid,$deletetoken)
308308
return array('','Paste does not exist, has expired or has been deleted.','');
309309
}
310310
}
311+
else
312+
{
313+
return array('','Invalid data','');
314+
}
311315

312316
if ($deletetoken != hash_hmac('sha1', $pasteid , getServerSalt())) // Make sure token is valid.
313317
{

0 commit comments

Comments
 (0)