You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2021/08/03 18:25:30 UTC

svn commit: r1891989 - /httpd/test/framework/trunk/t/apache/expr.t

Author: covener
Date: Tue Aug  3 18:25:30 2021
New Revision: 1891989

URL: http://svn.apache.org/viewvc?rev=1891989&view=rev
Log:
add basic test for replace() in expressions


Modified:
    httpd/test/framework/trunk/t/apache/expr.t

Modified: httpd/test/framework/trunk/t/apache/expr.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/expr.t?rev=1891989&r1=1891988&r2=1891989&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/expr.t (original)
+++ httpd/test/framework/trunk/t/apache/expr.t Tue Aug  3 18:25:30 2021
@@ -268,6 +268,8 @@ if (have_min_apache_version("2.5")) {
         [ "'email:<redacted2>' -in split s/$SAN_split/\$1/, $SAN_list_one"      => 0 ],
         [ "'IP Address:%{REMOTE_ADDR}' -in split/, /, join $SAN_list_one"
                                                                                 => 1 ],
+        [ "replace(%{REQUEST_METHOD},  'E', 'O') == 'GOT'" => 1],
+        [ "replace(%{REQUEST_METHOD},  'E', 'O') == 'GET'" => 0],
     ));
 }