You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/08/17 21:22:07 UTC
DO NOT REPLY [Bug 11794] New: -
Another parsing error with ExtFilterDefine
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11794>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11794
Another parsing error with ExtFilterDefine
Summary: Another parsing error with ExtFilterDefine
Product: Apache httpd-2.0
Version: 2.0.40
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: mod_ext_filter
AssignedTo: bugs@httpd.apache.org
ReportedBy: sebastian.wolfgarten@gmx.net
Hello,
I have tried to use sed with ExtFilterDefine
and I wrote a small shell script (bash) on
my linux box to replace < and > with the
equivalent html compatible forms < and
>. The script looks like this:
#!/bin/sh
/bin/sed -e 's/</\<\;/g' -e 's/>/\>\;/g'
It works great and prints every html page
in its source code. Anyway I wanted to include
this command directly into the ExtFilterDefine
directive:
ExtFilterDefine plaintext mode=output outtype=text/html cmd="/bin/sed -e 's/</
\<\;/g' -e 's/>/\>\;/g'"
<Location />
ExtFilterOptions LogStderr DebugLevel=9
SetOutputFilter plaintext
</Location>
Now I get the following errors in my error log:
/bin/sed: -e expression #1, char 1: Unknown command: ``'''
[Sat Aug 17 21:13:27 2002] [debug] mod_ext_filter.c(605): [client 192.168.0.2]
filtering `/bla.html' of type `text/html' through `/bin/sed', cfg
ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType
*/* ExtFilterOuttype text/html
[Sat Aug 17 21:13:27 2002] [error] [client 192.168.0.2] (32)Broken pipe:
apr_file_write(child input), len 0
Anyway I tried to escape the ' with a back-slash
but this did not change anything.
Bye and thanks,
Sebastian Wolfgarten
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org