[BUGFIX] Fix idna_convert.class not found
authorGeorg Ringer <mail@ringerge.org>
Wed, 7 Mar 2012 09:34:26 +0000 (10:34 +0100)
committerGeorg Ringer <mail@ringerge.org>
Wed, 7 Mar 2012 14:56:37 +0000 (15:56 +0100)
Since #30311 an additional class is used to check
domains but the call is wrong. This is fixed now

Change-Id: I459b40c4b9fcab5d03d029f03b07385feb49e691
Resolves: #34627
Releases: 4.8, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9448
Reviewed-by: Oliver Klee
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/class.t3lib_div.php

index 4bb07a8..fafa9bd 100644 (file)
@@ -1259,7 +1259,7 @@ final class t3lib_div {
                if (strlen($email) > 320) {
                        return FALSE;
                }
-               require_once('../typo3/contrib/idna/idna_convert.class.php');
+               require_once(PATH_typo3 . 'contrib/idna/idna_convert.class.php');
                $IDN = new idna_convert(array('idn_version' => 2008));
 
                return (filter_var($IDN->encode($email), FILTER_VALIDATE_EMAIL) !== FALSE);
@@ -1512,7 +1512,7 @@ final class t3lib_div {
         * @return boolean Whether the given URL is valid
         */
        public static function isValidUrl($url) {
-               require_once('../typo3/contrib/idna/idna_convert.class.php');
+               require_once(PATH_typo3 . 'contrib/idna/idna_convert.class.php');
                $IDN = new idna_convert(array('idn_version' => 2008));
 
                return (filter_var($IDN->encode($url), FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED) !== FALSE);