Project

General

Profile

Bug #15476 ยป linkUrlMail.diff

Administrator Admin, 2006-01-22 20:11

View differences:

typo3_src-4.0beta2/typo3/class.db_list.inc 2006-01-22 20:08:14.000000000 +0100
}
/**
* Wrapping input code in link to url or email if $testString is either.
* Wrapping input code in link to URL or email if $testString is either.
*
* @return string Link-Wrapped $code value, if $testString was URL or email.
*/
......
return '<a href="'.htmlspecialchars($testString).'" target="_blank">'.$code.'</a>';
}
// check for email:
// Check for email:
if (t3lib_div::validEmail($testString)) {
return '<a href="mailto:'.htmlspecialchars($testString).'" target="_blank">'.$code.'</a>';
}
// Return if nothing else...
return $testString;
return $code;
}
/**
    (1-1/1)