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





--- Comment #10 from Bob Ionescu <[email protected]>  2008-12-20 
18:16:58 PST ---
(In reply to comment #9)
> or does something rely on ' ' --> '+' escaping?

No, it's good that a space should be encoded into %20 since a substitution
/$1?query=$2 and flags [B,NE,R] should escape a space in $1 (i.e. URL-path
segment) into a %20.

ap_escape_path_segment checks T_ESCAPE_PATH_SEGMENT as far as I understand.

I found in gen_test_char.c

        if (!apr_isalnum(c) && !strchr("$-_.+!*'(),:@&=~", c)) {
            flags |= T_ESCAPE_PATH_SEGMENT;
        }

which reads to me if the char is not alpha-numeric and not $-_.+!*'(),:@&=~
flag it as T_ESCAPE_PATH_SEGMENT. But the problem is, that we don't want to
exclude those special characters here. The B flag works pretty well if you
request e.g. %22%23 (-> "# --> %22%23).

> I'm sitting here with a wretched cold

I hope you will get well soon!


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to