Permalink
Browse files

Fixed #10 Mailto links not correctly imported

  • Loading branch information...
1 parent 9763095 commit ce8e7c81b403a0109c6e6feeeda8340f6dacc487 @lolautruche committed Feb 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/ezxmltext/input/handlers/sqlixmlinputparser.php
@@ -1164,7 +1164,7 @@ function publishHandlerLink( $element, &$params )
}
// Check mail address validity
- if ( preg_match( "/^mailto:(.*)/i" , $url, $mailAddr ) )
+ if ( preg_match( "/^mailto:([^\?]*)(?:\?.*)?/i" , $url, $mailAddr ) )
{
if ( !eZMail::validate( $mailAddr[1] ) )
{

0 comments on commit ce8e7c8

Please sign in to comment.