From 833379e7d4c586c25b3d87cb6e7b3eb8bd7a0f96 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Sep 2019 15:24:42 +0200 Subject: keys.php: fix preg_match --- keys.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keys.php') 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']); -- cgit v1.2.3-70-g09d2