bugz.fedoraproject.org: replace %20 with + to fix redirect

The backslash-escaped space in 'Fedora EPEL' was replaced with %20 in
6e982da0d4 (bugz.fedoraproject.org: urlescape redirect instead of \,
2023-03-15).  Unfortunately, mod_rewrite treats the %2 as a
backreference, resulting in the string being 'Fedora0EPEL' which yeilds
no results for EPEL bugs.

We could possibly use on of the many RewriteRule flags to adjust the
handling of backreferences, but using a `+` seems like the simpler
option and works just as well in testing.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
This commit is contained in:
Todd Zullinger 2023-05-26 13:10:02 -04:00 committed by kevin
parent a780dc21a1
commit 2b081e0ec1

View file

@ -1,5 +1,5 @@
RewriteEngine On
RewriteMap lowercase int:tolower
RewriteRule ^/(.+) https://bugzilla.redhat.com/buglist.cgi?bug_status=__open__&classification=Fedora&product=Fedora&product=Fedora%20EPEL&component=$1 [R,L]
RewriteRule ^/(.+) https://bugzilla.redhat.com/buglist.cgi?bug_status=__open__&classification=Fedora&product=Fedora&product=Fedora+EPEL&component=$1 [R,L]
RewriteRule ^/$ https://bugzilla.redhat.com/ [R,L]