Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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']);