https://issues.apache.org/bugzilla/show_bug.cgi?id=56528

            Bug ID: 56528
           Summary: "bad flags delimiter" - improve helpfulness
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: PatchAvailable
          Severity: enhancement
          Priority: P2
         Component: mod_rewrite
          Assignee: bugs@httpd.apache.org
          Reporter: chaos...@gmail.com

Created attachment 31627
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31627&action=edit
Improve error reporting in mod_rewrite

The parser in mod_rewrite always interprets the third argument to
RewriteRule/RewriteCond as optional flags. However, unescaped whitespace is
fairly easy to accidentally insert into a RewriteRule/RewriteCond directive.
When this happens, "bad flag delimiters" is displayed since the rogue
whitespace causes the parser to interpret a chunk of one of the args as flags.
This error is a spectacularly bad way to express this (even if it's strictly
true).

The attached patch attempts to improve the error reporting of the relevant
section in mod_rewrite.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to