>Number: 1921
>Category: mod_include
>Synopsis: '$' is not recognized as 'end of line' in regex matching
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sat Mar 7 03:40:00 PST 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.2.5
>Environment:
Linux 2.0.32 #11 on i686 (redhat 5.0)
gcc version 2.7.2.3
>Description:
In the "<!--#if expr=" clause, the $ ('end of line') is not matched on Linux.
It is matched, however, on Sun4 machine.
>How-To-Repeat:
The HTML code is as following:
<!--#if expr="$DOCUMENT_URI = /^\/~[a-z]*$/" -->
<h1>IF</h1>
<!--#else -->
<h1>ELSE</h1>
<!--#endif -->
Here is the URL on Linux machine ($ is not matched):
http://bach.wisdom.weizmann.ac.il/~dimrub/missing.html
Here is the same file on Sun4 machine ($ is matched correctly):
http://www.wisdom.weizmann.ac.il/~dimrub/missing.html
>Fix:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]