[-] FO : Fixed regexp for images embbed in description

This commit is contained in:
Damien Metzger
2013-02-18 16:15:17 +01:00
parent ad55093abb
commit 690d880cb7
+1 -1
View File
@@ -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]);