From 792e9a25df45df02e090b3d64deaa8e89a226e5d Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 11 Apr 2012 15:42:42 +0000 Subject: [PATCH] [-] BO : fix #PSCFI-4878 --- 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}