>Number: 2249 >Category: general >Synopsis: SSI regex error: /^$/ should only match undef'd or empty vars >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon May 18 23:40:00 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.2.5 onward >Environment: Linux, Kernel 2.0.x, binary distribution from SuSE 5.2 (apassl.*) >Description: <!--#if expr="$A = /^$/" --> (sp:)?) in 1.2.0 worked fine. However with newer releases (1.2.5 and 1.2.6), above line seems to be always true instead of just matching empty strings (or undefined variables). >How-To-Repeat: Output contains 12 on 1.2.0, and no date on 1.2.5+. Hmmm.
<!--#set var="PRIMARY_LANG" value="e" --> <!--#set var="LAST" value="12" --> <!--#if expr="$PRIMARY_LANG = e && $LAST = /^$/" --> <!--#set var="LAST" value="No date available" --> <!--#endif --> <!--#if expr="$PRIMARY_LANG = e" --> <!--#if expr="$DOCUMENT_NAME = e_home.shtml" --> <br><font color="red">Last Update: <!--#echo var="LAST"--></font> <!--#else --> <h1><b><i><font color="#FF8000"><!--#echo var="TITLE"--></font></i></b></h1> <font color="red">Last Update: <!--#echo var="LAST"--></font> <!--#endif --> <!--#endif --> >Fix: Have a look at regex, content of new vars, ssi... >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. ]
