[users@httpd] mod_ext_filter - cannot escape forward slash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using sed as an output filter to replace some text. I can escape periods but not forward slashes. It throws the following error.
ExtFilterInType text/html ExtFilterOuttype (unchanged)
/usr/bin/sed: -e _expression_ #1, char 14: unknown option to `s'
Apache config
ExtFilterDefine fix mode=output intype=text/html cmd="/usr/bin/sed s/test1/app1\//g"
<Location /app1>
SetOutputFilter fix
ExtFilterOptions LogStderr DebugLevel=3
</Location>
Filter will work fine if the "\/" is removed from above.
Any ideas?
Server version: Apache/2.0.59
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]