We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 241c75a commit 41df300Copy full SHA for 41df300
index.php
@@ -268,7 +268,7 @@ function deletePaste($pasteid)
268
if (!empty($_SERVER['QUERY_STRING'])) // Display an existing paste.
269
{
270
$dataid = $_SERVER['QUERY_STRING'];
271
- if (preg_match('/[a-f\d]{16}/',$dataid)) // Is this a valid paste identifier ?
+ if (preg_match('/\A[a-f\d]{16}\z/',$dataid)) // Is this a valid paste identifier ?
272
273
$filename = dataid2path($dataid).$dataid;
274
if (is_file($filename)) // Check that paste exists.
0 commit comments