X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/5aa7946eabd147041a42f3347f447eb53ee0cc47..58c5ec6b45dcc52107f5e7c8bbca2933c7f2e98d:/upload.inc.php diff --git a/upload.inc.php b/upload.inc.php index b4a056d..e270b76 100644 --- a/upload.inc.php +++ b/upload.inc.php @@ -48,7 +48,7 @@ function messagehtml($input) if (empty($input)) { return; } - if ($User->admin and preg_match('/\A<[a-z][^>]*>/', $input)) { + if ($User and $User->admin and preg_match('/\A<[a-z][^>]*>/', $input)) { return $input; # allow html input as is if privileged } $markup = [