compatibility update for php7/8 (#61)

Co-authored-by: muppeth <muppeth@disroot.org>
Reviewed-on: #61
This commit is contained in:
muppeth 2022-03-23 10:05:11 +00:00
parent d1de1f0695
commit c4e9e3e840
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ $PGP_HOME="/var/gpg/.phkp";
$MAX_KEYSIZE=102400;
if (ereg("/pks\/add",$_SERVER['REQUEST_URI']))
if (preg_match("/pks\/add/",$_SERVER['REQUEST_URI']))
{
if ($MAX_KEYSIZE == -1 || strlen($_POST['keytext']) <= $MAX_KEYSIZE)
{