X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=3c4e377e93c30aa227bdfea5a662f38790858ed0;hb=03f62d0b89aa9276ac37f4d616d940fae184d850;hp=7071a163a422539888f5bab91dcae49cd34011f2;hpb=3afdce4fe00b4af570122ce7b8158ced44aec7d3;p=mailer.git diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php index 7071a163a4..3c4e377e93 100644 --- a/inc/libs/html_mail_functions.php +++ b/inc/libs/html_mail_functions.php @@ -55,14 +55,14 @@ function HTML_ADD_VALID_TAGS() { // function HTML_CHECK_TAGS ($html) { $test = stripslashes($html); - while (ereg("<", $test) && ereg(">", $test)) { - $check = strtolower(substr($test, strpos($test, "<") + 1, strpos($test, ">") - strpos($test, "<") - 1)); + while (ereg('<', $test) && ereg('>', $test)) { + $check = strtolower(substr($test, strpos($test, '<') + 1, strpos($test, '>') - strpos($test, '<') - 1)); $check = str_replace('/', '', $check); if (!in_array($check, $GLOBALS['html_tags'])) { // Invalid tag found! return ""; } - $test = substr($test, strpos($test, ">") + 1); + $test = substr($test, strpos($test, '>') + 1); } // Return tested code return $html;