]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Fix 'x' command processing in mod_sed.
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 20 Jun 2016 21:03:07 +0000 (21:03 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 20 Jun 2016 21:03:07 +0000 (21:03 +0000)
commitadd4f525efb3bf584ffcbdd6e8b0171e5f9fbb39
treea5e2d82923991909a3685487575f5af15b0aebc5
parent319e9d69a471184f8b7044a67ef1b148b53d010d
Fix 'x' command processing in mod_sed.

This has been tested using a slighly modified example taken from:
    https://blogs.oracle.com/basant/entry/using_mod_sed_to_filter
(OutputSed "s/.\*//"             has been changed in                OutputSed "s/.*//")

OutputSed "/Sunday/ {"
OutputSed "h"
OutputSed "s/.*//"
OutputSed "N"
OutputSed "s/\^.//"
OutputSed     "/Monday/ {"
OutputSed         "x"
OutputSed         "s/Sunday/Monday/"
OutputSed         "x"
OutputSed         "s/Monday/Tuesday/"
OutputSed         "H"
OutputSed         "g"
OutputSed     "}"
OutputSed "}"

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1749401 13f79535-47bb-0310-9956-ffa450edef68
modules/filters/sed1.c