From: Jerome Jutteau Date: Mon, 29 Jul 2013 20:03:43 +0000 (+0000) Subject: Fix link name length check X-Git-Tag: 1.1~199 X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/8e9d60538daf0439c2fccee55c91a044bba3736f?hp=c4b50888f400fd7e0442431e859010450b55af4b Fix link name length check --- diff --git a/script.php b/script.php index 2409f1b..b968540 100755 --- a/script.php +++ b/script.php @@ -319,7 +319,7 @@ elseif (isset ($_GET['h'])) if (isset ($_GET['d'])) $d = $_GET['d']; - if (!preg_match ('/[0-9a-zA-Z_-]{22}$/', $link_name)) + if (!preg_match ('/[0-9a-zA-Z_-]+$/', $link_name)) { echo "Error"; exit;