File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,7 +331,11 @@ function processPasteFetch($pasteid)
331331 {
332332 return array ('' ,'Paste does not exist, has expired or has been deleted. ' ,'' );
333333 }
334- }
334+ }
335+ else
336+ {
337+ return array ('' ,'Invalid data ' ,'' );
338+ }
335339
336340 // Get the paste itself.
337341 $ paste =json_decode (file_get_contents ($ filename ));
@@ -395,7 +399,6 @@ function processPasteFetch($pasteid)
395399else if (!empty ($ _SERVER ['QUERY_STRING ' ])) // Return an existing paste.
396400{
397401 list ($ CIPHERDATA , $ ERRORMESSAGE , $ STATUS ) = processPasteFetch ($ _SERVER ['QUERY_STRING ' ]);
398-
399402}
400403
401404require_once "lib/rain.tpl.class.php " ;
@@ -406,4 +409,4 @@ function processPasteFetch($pasteid)
406409$ page ->assign ('ERRORMESSAGE ' ,$ ERRORMESSAGE );
407410$ page ->assign ('STATUS ' ,$ STATUS );
408411$ page ->draw ('page ' );
409- ?>
412+ ?>
You can’t perform that action at this time.
0 commit comments