mact var for using in forms
Posted: Fri Feb 01, 2008 3:43 pm
Hello, I noticed that some modules are using the mact var in forms as a hidden field. However, when a form is posted to /admin/moduleinterface.php in this way, the mact var is not behaving as I would expect.
This shows in the breadcrumb and module title not visible in the module.
The cause for this is the var `query` in class.admintheme.inc.php is not urldecoded. This is necessary because POST vars are automatticaly urlencoded.
Simple solution is to change line 121 of this file to:
Do you guys foresee any problems?
This shows in the breadcrumb and module title not visible in the module.
The cause for this is the var `query` in class.admintheme.inc.php is not urldecoded. This is necessary because POST vars are automatticaly urlencoded.
Simple solution is to change line 121 of this file to:
Code: Select all
$this->query = (isset($_SERVER['QUERY_STRING'])?urldecode($_SERVER['QUERY_STRING']):'');