From 690d880cb730b7e592983f9eef11415a6dbeb3f2 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 18 Feb 2013 16:15:17 +0100 Subject: [PATCH] [-] FO : Fixed regexp for images embbed in description --- controllers/front/ProductController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index b29b7e7cc..932cc075b 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -509,7 +509,7 @@ class ProductControllerCore extends FrontController protected function transformDescriptionWithImg($desc) { - $reg = '/\[img-([0-9]+)-(left|right)-([a-z]+)\]/'; + $reg = '/\[img\-([0-9]+)\-(left|right)\-([a-zA-Z0-9-_]+)\]/'; while (preg_match($reg, $desc, $matches)) { $link_lmg = $this->context->link->getImageLink($this->product->link_rewrite, $this->product->id.'-'.$matches[1], $matches[3]);