[SECURITY] Validate complete referring request
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Mvc / Request.php
index ebddbfe..1b06e3b 100644 (file)
@@ -390,27 +390,8 @@ class Request implements RequestInterface
             $this->internalArguments[$argumentName] = $value;
             return;
         }
-        switch ($argumentName) {
-            case '@extension':
-                $this->setControllerExtensionName($value);
-                break;
-            case '@subpackage':
-                $this->setControllerSubpackageKey($value);
-                break;
-            case '@controller':
-                $this->setControllerName($value);
-                break;
-            case '@action':
-                $this->setControllerActionName($value);
-                break;
-            case '@format':
-                $this->setFormat($value);
-                break;
-            case '@vendor':
-                $this->setControllerVendorName($value);
-                break;
-            default:
-                $this->arguments[$argumentName] = $value;
+        if ($argumentName[0] !== '@') {
+            $this->arguments[$argumentName] = $value;
         }
     }