]> git.p6c8.net - jirafeau/pcanterino.git/commitdiff
Also hooking regex on script.php
authorDavi Torres <dtorres@simnet.ca>
Mon, 22 Jun 2026 15:09:17 +0000 (11:09 -0400)
committerDavi Torres <dtorres@simnet.ca>
Mon, 22 Jun 2026 15:09:17 +0000 (11:09 -0400)
script.php

index ae574494bf2165f2698c96b06b4f28773be762db..cc37c41351569b620b3767f9c3309af1f6345b6a 100644 (file)
@@ -163,7 +163,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES)
         $d = $_GET['d'];
     }
 
-    if (!preg_match('/[0-9a-zA-Z_-]+$/', $link_name)) {
+    if (!preg_match('/^[0-9a-zA-Z_-]+$/', $link_name)) {
         echo 'Error 7';
         exit;
     }

patrick-canterino.de