#907: Escaping of brackets and braces inside routing patterns is inconsistent
---------------------+------------------------------------------------------
Reporter: david | Owner: dominik
Type: task | Status: new
Priority: normal | Milestone: 1.1
Component: routing | Version: 0.11.5
Severity: normal | Keywords: routing escaping backslash
Has_patch: 0 |
---------------------+------------------------------------------------------
Changes (by dominik):
* keywords: => routing escaping backslash
* type: defect => task
* milestone: 0.11.6 => 1.1
Old description:
> The backslash is simply stripped away or something, so the brackets and
> braces show up without it in the final regular expression.
New description:
Depending on where in the pattern you escape, how to escape differs.
to match a literal "(" inside a parameter in the pattern and outside you
have to do:
''pattern="\( (parameter: \\\( )"''
if you would do ''pattern="\( (parameter: \( )"'' you'd get ''Warning:
preg_match(): Compilation failed: missing )''
this needs a cleanup
--
--
Ticket URL: <http://trac.agavi.org/ticket/907#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets