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:
parent
e824c6cffa
commit
f944ac9cba
|
@ -37,7 +37,7 @@ class OC_TemplateLayout extends OC_Template {
|
||||||
} else {
|
} else {
|
||||||
parent::__construct('core', 'layout.base');
|
parent::__construct('core', 'layout.base');
|
||||||
}
|
}
|
||||||
$versionParameter = '?' . md5(implode(OC_Util::getVersion()));
|
$versionParameter = '?v=' . md5(implode(OC_Util::getVersion()));
|
||||||
// Add the js files
|
// Add the js files
|
||||||
$jsfiles = self::findJavascriptFiles(OC_Util::$scripts);
|
$jsfiles = self::findJavascriptFiles(OC_Util::$scripts);
|
||||||
$this->assign('jsfiles', array(), false);
|
$this->assign('jsfiles', array(), false);
|
||||||
|
|
Loading…
Reference in New Issue