diff options
author | Erich Eckner <git@eckner.net> | 2019-09-02 15:24:42 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-02 15:24:42 +0200 |
commit | 833379e7d4c586c25b3d87cb6e7b3eb8bd7a0f96 (patch) | |
tree | 91175bc4d7913a75c1fd1e4dbd18c1b109bdeb6a | |
parent | 368bf08c7831cf183a0fa3a7a8d8d30851152a54 (diff) | |
download | archweb32-833379e7d4c586c25b3d87cb6e7b3eb8bd7a0f96.tar.xz |
keys.php: fix preg_match
-rw-r--r-- | keys.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ require_once "init.php"; if (!array_key_exists('k', $_GET)) die(); -if (preg_match('/^[0-9A-Fa-f]{40}$/', $_GET['k']) === false) +if (preg_match('/^[0-9A-Fa-f]{16,40}$/', $_GET['k']) !== 1) die(); $output = shell_exec('gpg -a --export ' . $_GET['k']); |