X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/blobdiff_plain/9e0eb7719c3ce8dd8052b4c29da5c60033fc1389..7ce7490a06416f2f47cfae72bc2baf0188d38f22:/script.php diff --git a/script.php b/script.php index 301ebe8..2fc297f 100644 --- a/script.php +++ b/script.php @@ -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; }