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 2018/01/19 16:24:52 UTC

[Bug 40453] lexicographic compare in RewriteCond isn't lexicographic

https://bz.apache.org/bugzilla/show_bug.cgi?id=40453

--- Comment #2 from Alain Williams <ad...@phcomp.co.uk> ---
The original URL no longer works: http://koiclubsandiego.org/bug/
I am thus not 100% sure what the original bug report was.

I assume that it is saying that compare_lexicography() in mod_rewrite.c , when
given 2 strings of different lengths, returns lexical order based on the string
length and not the string contents. Ie AAA is greater than B.

What has not been done is to DOCUMENT this bug; ie there ought to be something
in docs/manual/mod/mod_rewrite.html.en near line 527 that describes this
strange behaviour; and that the fix is to use ap_expr. The bug is not present
with case independent compare (flag NC).

If asked I will produce a patch to the documentation

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org