Skip to content

Commit

Permalink
Adapt cherry pick to code in 2015.03 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Aug 17, 2015
1 parent 86a346e commit 164be3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ protected function _checkFields( array &$params )
$name = substr( $key, 19 );
$regex = $view->config( 'client/html/checkout/standard/address/validate/' . $name );

if( $regex && preg_match( '/' . $regex . '/', $value ) !== 1 )
if( $regex && preg_match( $regex, $value ) !== 1 )
{
$msg = $view->translate( 'client/html', 'Billing address part "%1$s" is invalid' );
$invalid[$key] = sprintf( $msg, $name );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ protected function _checkFields( array &$params )
$name = substr( $key, 19 );
$regex = $view->config( 'client/html/checkout/standard/address/validate/' . $name );

if( $regex && preg_match( '/' . $regex . '/', $value ) !== 1 )
if( $regex && preg_match( $regex, $value ) !== 1 )
{
$msg = $view->translate( 'client/html', 'Delivery address part "%1$s" is invalid' );
$invalid[$key] = sprintf( $msg, $name );
Expand Down

0 comments on commit 164be3c

Please sign in to comment.