From: Lukas Reschke Date: Thu, 4 Apr 2013 21:33:05 +0000 (+0300) Subject: Add a name to the version parameter X-Git-Tag: v5.0.5RC1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=86d8b831f280cebe0203d3d5261d3cfb9986b1d0;p=nextcloud-server.git Add a name to the version parameter Without an additional name it's nearly impossible to write positive security model based rules since the parameter name isn't defined. --- diff --git a/lib/templatelayout.php b/lib/templatelayout.php index 95c4b4a1c82..eef867c8b1c 100644 --- a/lib/templatelayout.php +++ b/lib/templatelayout.php @@ -37,7 +37,7 @@ class OC_TemplateLayout extends OC_Template { } else { parent::__construct('core', 'layout.base'); } - $versionParameter = '?' . md5(implode(OC_Util::getVersion())); + $versionParameter = '?v=' . md5(implode(OC_Util::getVersion())); // Add the js files $jsfiles = self::findJavascriptFiles(OC_Util::$scripts); $this->assign('jsfiles', array(), false);