Feature Requests item #3289779, was opened at 2011-04-19 12:56
Message generated for change (Comment added) made by ajlittoz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390120&aid=3289779&group_id=27350
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Browsing Interface
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Andre-Littoz (ajlittoz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Remove interaction between variables and URL args
Initial Comment:
Variables are passed to diff, ident, search and source scripts as varname=value while state information and requests are also passed as param=value.
If a variable is given the same name as a state information argument (e.g. showattic or raw), mayhem may result.
To avoid this potential problem, use a prefix for all internal URL args, e.g. a dot, and forbid that prefix in variable names.
----------------------------------------------------------------------
>Comment By: Andre-Littoz (ajlittoz)
Date: 2011-12-21 09:36
Message:
The interaction has been removed by prefixing all internal parameters with
an underscore _.
A new rule/restriction will be added to the documentation to forbid an
initial underscore or dollar in variable names.
The rationale for the dollar is the need to override user variable value
without resorting to a script. At the next LXR invocation, sub httpinit
will do the trick before relinquishing control to the specific script.
Code is in CVS for the next release (0.10).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390120&aid=3289779&group_id=27350
|