compatibility update for php7/8 (#61)
Co-authored-by: muppeth <muppeth@disroot.org> Reviewed-on: #61
This commit is contained in:
parent
d1de1f0695
commit
c4e9e3e840
|
@ -28,7 +28,7 @@ $PGP_HOME="/var/gpg/.phkp";
|
||||||
$MAX_KEYSIZE=102400;
|
$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)
|
if ($MAX_KEYSIZE == -1 || strlen($_POST['keytext']) <= $MAX_KEYSIZE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue