Explicitly masquerade illegal link as an internal error for AJAX exceptions
authorAlexander Ebert <ebert@woltlab.com>
Thu, 23 Nov 2017 17:22:46 +0000 (18:22 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 23 Nov 2017 17:22:46 +0000 (18:22 +0100)
wcfsetup/install/files/lib/system/exception/AJAXException.class.php

index dc94aa7302c0ad7989dd2da26e16ef65aaf49a92..6ae37a0bdd00d1de79891f89822e14b149cf466c 100644 (file)
@@ -113,6 +113,7 @@ class AJAXException extends LoggedException {
                        break;
                        
                        default:
+                       case self::ILLEGAL_LINK:
                        case self::INTERNAL_ERROR:
                                //header('HTTP/1.1 418 I\'m a Teapot');
                                header('HTTP/1.1 503 Service Unavailable');