X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=3c4e377e93c30aa227bdfea5a662f38790858ed0;hp=7071a163a422539888f5bab91dcae49cd34011f2;hb=00797d46cc0b7e2c4e8c084eb4c6ac26cd0336e1;hpb=53a6857b021b42835709b11e2287d11986d8b2c1 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;