index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-04-26 17:48:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-04-26 17:48:37 +0200 |
commit | 3836d76c7dd254a3ebf2c6cf082726971ec6e6d4 (patch) | |
tree | 487b5bd0edecfbff16cde136bf5ecde53a916f4b /keys.php | |
parent | cbe89ba633f683faf14092e7a90031f5495f8467 (diff) |
-rw-r--r-- | keys.php | 4 |
@@ -30,6 +30,10 @@ if (!array_key_exists('k', $_GET)) { '">download</a> them.' . "\n"; die(); } + +if (substr($_GET['k'], 0, 2)=='0x') + $_GET['k'] = substr($_GET['k'], 2); + if (preg_match('/^[0-9A-Fa-f]{16,40}$/', $_GET['k']) !== 1) die(); |