Loading...
 
Skip to main content

The general administration page has a variable name collision ("style" in the submit button)

Status
Closed
Subject
The general administration page has a variable name collision ("style" in the submit button)
Version
1.9.x
Category
  • Error
Feature
Administration
Templates (Smarty)
Resolution status
Works For Me
Submitted by
nilsfr
Lastmod by
Marc Laporte
Rating
(0)
Description

I was unable to change the general preferences in the general administration form.

The reason is a naming collision between the cookie variable "style" and the name of the "Change Styles only" submit button. The consequence is that the code for changing style is run every time (because the "style" variable is always set).

The associative array $_REQUEST consist of the contents of $_GET, $_POST, and $_COOKIE.

Solution
<pre> To solve this you have to change the line: <input type="submit" name="style" value="Change style only{/tr}" /> to: <input type="submit" name="changestyle" value="Change style only{/tr}" /> in the file: $TIKI_ROOT/templates/tiki-admin-include-general.tpl And change the line: if $_REQUEST%22style%22 { to: if $_REQUEST%22changestyle%22 { in the file: $TIKI_ROOT/tiki-admin_include_general.php </pre>
Importance
9 high
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
734
Created
Thursday 01 June, 2006 19:08:23 UTC
by Unknown
LastModif
Saturday 02 June, 2007 03:56:32 UTC


Show PHP error messages