]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add a name to the version parameter
authorLukas Reschke <lukas@statuscode.ch>
Thu, 4 Apr 2013 21:33:05 +0000 (00:33 +0300)
committerLukas Reschke <lukas@statuscode.ch>
Sat, 13 Apr 2013 13:49:15 +0000 (15:49 +0200)
Without an additional name it's nearly impossible to write positive security model based rules since the parameter name isn't defined.

lib/templatelayout.php

index 95c4b4a1c8298c15084d934e0df918a3ff9a1f06..eef867c8b1cf9898acfac6d74760c199c1f63d90 100644 (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);