MyXoops Forum

Forum - myXOOPS German Support

7 + 7 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Re: Automatische Links verhindern

Betreff: Re: Automatische Links verhindern
von mcleines am 13.03.2007 10:53:07

Das passiert in der Datei /class/module.textsanitizer.php:

ersetze:

function makeClickable(&$text)
        {
                
$patterns = array("/(^|[^]_a-z0-9-="'/])([a-z]+?)://([^, rn"()'<>]+)/i", "/(^|[^]_a-z0-9-="'/])www.([a-z0-9-]+).([^, rn"()'<>]+)/i", "/(^|[^]_a-z0-9-="'/])ftp.([a-z0-9-]+).([^, rn"()'<>]+)/i", "/(^|[^]_a-z0-9-="'/:.])([a-z0-9-_.]+?)@([^, rn"()'<>[]]+)/i");
                
$replacements = array("\1<a href="\2://\3" target="_blank">\2://\3</a>", "\1<a href="http://www.\2.\3" target="_blank">www.\2.\3</a>", "\1<a href="ftp://ftp.\2.\3" target="_blank">ftp.\2.\3</a>", "\1<a href="mailto:\2@\3">\2@\3</a>");
                
return preg_replace($patterns, $replacements, $text);
        }


durch:

function makeClickable(&$text)
        {
                return 
$text;
        }

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag