ASF Bugzilla – Attachment 30515 Details for
Bug 55176
SSI regular expressions parsing fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Another variant without =~ and without $1
foo2.html (text/html), 631 bytes, created by
David Reitter
on 2013-07-01 20:19:56 UTC
(
hide
)
Description:
Another variant without =~ and without $1
Filename:
MIME Type:
Creator:
David Reitter
Created:
2013-07-01 20:19:56 UTC
Size:
631 bytes
patch
obsolete
><html> > ><body> > >QS:<!--#echo var="QUERY_STRING" --> > >ok sofar... > >Test case 1: ><!--#if expr="$QUERY_STRING = /a/" --> ><!--#endif --> > >Continuing. > >Test case 2: >does not work - causes ClassCastException ><!--#if expr="$QUERY_STRING = /a=/" --> ><!--#endif --> > >Continuing. > >Test case 3: >also does not work - causes no exception, but stops processing ><!--#if expr="$QUERY_STRING = /year=(.+)/" --> > <!--ssi-comment: year found --> >year: > <!--#echo var="year" --> ><!--#else --> >year not provided > <!--ssi-comment: year NOT found --> > <!--#set var="year" value="some" --> ><!--#endif --> > >Reached end of file. ></body> ></html>
<html> <body> QS:<!--#echo var="QUERY_STRING" --> ok sofar... Test case 1: <!--#if expr="$QUERY_STRING = /a/" --> <!--#endif --> Continuing. Test case 2: does not work - causes ClassCastException <!--#if expr="$QUERY_STRING = /a=/" --> <!--#endif --> Continuing. Test case 3: also does not work - causes no exception, but stops processing <!--#if expr="$QUERY_STRING = /year=(.+)/" --> <!--ssi-comment: year found --> year: <!--#echo var="year" --> <!--#else --> year not provided <!--ssi-comment: year NOT found --> <!--#set var="year" value="some" --> <!--#endif --> Reached end of file. </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 55176
:
30513
| 30515