]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/newsletter_functions.php
Typo in function name fixed, double->single quotes, some HTML fixes
[mailer.git] / inc / libs / newsletter_functions.php
index 16a28db280747a41ebc2f4f1f259137342e97143..f6b0dfd4b8f9c3bce97cf5f9730cd208763a2d66 100644 (file)
@@ -56,14 +56,14 @@ function NL_ADD_VALID_TAGS () {
 //
 function NL_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;