mirror of
https://github.com/php/web-php.git
synced 2026-04-25 07:58:04 +02:00
If Rasmus doesn't know, it's good enough for me.
This commit is contained in:
@@ -189,8 +189,8 @@ function find_password($user) {
|
||||
|
||||
function addlinks($text) {
|
||||
$text = htmlspecialchars($text);
|
||||
$new_text = ereg_replace("(http:[^ \n\t]*)","<a href=\"\1-=-\">\\1</a>",$text);
|
||||
$new_text = ereg_replace("(ftp:[^ \n\t]*)","<a href=\"\1-=-\">\\1</a>",$text);
|
||||
$new_text = ereg_replace("(http:[^ \n\t]*)","<a href=\"\\1\">\\1</a>",$text);
|
||||
$new_text = ereg_replace("(ftp:[^ \n\t]*)","<a href=\"\\1\">\\1</a>",$text);
|
||||
$new_text = ereg_replace("[.,]-=-\"","\"",$new_text);
|
||||
$new_text = ereg_replace("-=-\"","\"",$new_text);
|
||||
return $new_text;
|
||||
|
||||
Reference in New Issue
Block a user