From 73175f11919ba6e3a5e1030456a4312f4e837367 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 11 Apr 2012 15:42:42 +0000 Subject: [PATCH] [-] BO : fix #PSCFI-4878 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14590 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Validate.php | 2 +- themes/default/history.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Validate.php b/classes/Validate.php index be2067e79..2e5978c6e 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -45,7 +45,7 @@ class ValidateCore */ public static function isEmail($email) { - return !empty($email) && preg_match('/^[a-z0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z0-9]+[._a-z0-9-]*\.[a-z0-9]+$/ui', $email); + return !empty($email) && preg_match('/^[a-z\p{L}0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z\p{L}0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z\p{L}0-9]+[._a-z\p{L}0-9-]*\.[a-z0-9]+$/ui', $email); } /** diff --git a/themes/default/history.tpl b/themes/default/history.tpl index a913e4d13..d93535f91 100644 --- a/themes/default/history.tpl +++ b/themes/default/history.tpl @@ -60,8 +60,8 @@ {if isset($order.order_state)}{$order.order_state|escape:'htmlall':'UTF-8'}{/if} {if (isset($order.invoice) && $order.invoice && isset($order.invoice_number) && $order.invoice_number) && isset($invoiceAllowed) && $invoiceAllowed == true} - {l s='Invoice'} - {l s='PDF'} + {l s='Invoice'} + {l s='PDF'} {else}-{/if}