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
- 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 734
- Created
- Thursday 01 June, 2006 19:08:23 UTC
by Unknown - LastModif
- Saturday 02 June, 2007 03:56:32 UTC