[vhffs-dev] [1514] Fixed rewrite regex to correctly handle plus signs

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1514
Author:   beuss
Date:     2009-08-07 01:13:45 +0200 (Fri, 07 Aug 2009)

Log Message:
-----------
Fixed rewrite regex to correctly handle plus signs

Modified Paths:
--------------
    trunk/vhffs-doc/config/apache/publicconf


Modified: trunk/vhffs-doc/config/apache/publicconf
===================================================================
--- trunk/vhffs-doc/config/apache/publicconf	2009-08-04 22:00:37 UTC (rev 1513)
+++ trunk/vhffs-doc/config/apache/publicconf	2009-08-06 23:13:45 UTC (rev 1514)
@@ -16,7 +16,10 @@
 	# Allows to have /tags/Pouet
        <IfModule mod_rewrite.c>
                 RewriteEngine On
-                RewriteRule /tags/(.*)$ /tagsearch.pl?search=$1
+		# This is the only way we found to handle
+		# tags with a plus in their label
+                RewriteCond %{THE_REQUEST} ^(?:GET|POST)\ /tags/([^/]+)\ HTTP/\d\.\d$
+                RewriteRule . /tagsearch.pl?search=%1 [NE,L]
         </IfModule>
 
         ErrorLog /var/log/apache2/projects-error.log


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/