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 2005/09/12 13:51:53 UTC

DO NOT REPLY [Bug 36609] New: - .htaccess AddHeader handling is buggy

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36609>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36609

           Summary: .htaccess AddHeader handling is buggy
           Product: Apache httpd-2.0
           Version: 2.0.46
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_headers
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mezei.zoltan@telefor.hu


I try to use the following directive from a .htaccess file:

<Files "test.jpg">
  header set X-MP-Tax "25.0%"
</Files>

This results as an internal server error. The parser code in mod_headers.c
declares that after a '%' character is read, the next character should be read
and a handler function should be called. However I don't have a next character...

A possible workaround can be to use something like this:

SetEnv VAT "25.0%"
<Files "test.jpg">
  header set X-MP-Tax "%{VAT}e"
</Files>

But I think there should be a better solution, or at least a warning in the docs
not to use % characters while setting HTTP headers from a .htaccess.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org