summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 15:24:42 +0200
committerErich Eckner <git@eckner.net>2019-09-02 15:24:42 +0200
commit833379e7d4c586c25b3d87cb6e7b3eb8bd7a0f96 (patch)
tree91175bc4d7913a75c1fd1e4dbd18c1b109bdeb6a
parent368bf08c7831cf183a0fa3a7a8d8d30851152a54 (diff)
downloadarchweb32-833379e7d4c586c25b3d87cb6e7b3eb8bd7a0f96.tar.xz
keys.php: fix preg_match
-rw-r--r--keys.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/keys.php b/keys.php
index 5b398fc..08263ae 100644
--- a/keys.php
+++ b/keys.php
@@ -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']);