Browse Source

compatibility update for php7/8 (#61)

Co-authored-by: muppeth <muppeth@disroot.org>
Reviewed-on: #61
pull/70/head
muppeth 3 months ago
parent
commit
c4e9e3e840
  1. 2
      gpg-mailgate-web/public_html/include/phphkp.php

2
gpg-mailgate-web/public_html/include/phphkp.php

@ -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)
{

Loading…
Cancel
Save