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.
This commit is contained in:
Lukas Reschke 2013-04-05 00:33:05 +03:00
parent e824c6cffa
commit f944ac9cba

View file

@ -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);