diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 46a8adab..4db26d87 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -200,9 +200,9 @@ class Application extends App implements IBootstrap { // Do not apply CSP rules on WebDAV/OCS // Ideally this could be a middleware running after the controller execution before rendering the result to only do it on page response - $script_name_parts = explode('/', $container->getServer()->getRequest()->getScriptName()); - $script_file = end($script_name_parts); - if ($script_file !== 'index.php') { + $scriptNameParts = explode('/', $container->getServer()->getRequest()->getScriptName()); + $scriptFile = end($scriptNameParts); + if ($scriptFile !== 'index.php') { return; } |