From a7e7ebd2cd555f8228a68ae078234552f5808ce1 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 15 Nov 2012 13:42:47 +0000 Subject: [PATCH] [-] FO : Fix #PSCFV-5239 bad rewrite rule for category with no image --- classes/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index ed9bae394..7d4e4fe76 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -1624,7 +1624,7 @@ class ToolsCore fwrite($write_fd, 'RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]'."\n"); fwrite($write_fd, $media_domains); fwrite($write_fd, $domain_rewrite_cond); - fwrite($write_fd, 'RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]'."\n"); + fwrite($write_fd, 'RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]'."\n"); } } // Redirections to dispatcher