auth: create user object regardless of login
[minimedit.git] / upload.inc.php
index 74219ed0043c01e77a3db61026e5c09dc0fe1036..6175fe20a685b1b1df707ccba8e74f4bad2564f1 100644 (file)
@@ -45,7 +45,7 @@ function messagehtml($input)
        if (empty($input)) {
                return;
        }
-       if ($User and $User->admin and preg_match('/\A<[a-z][^>]*>/', $input)) {
+       if ($User->admin and preg_match('/\A<[a-z][^>]*>/', $input)) {
                return $input;  # allow html input as is if privileged
        }
        $html = preg_replace(