aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-01 19:10:23 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-01 19:10:23 +0000
commitabd02013b479f84f31d97b8b90b99efb443a3477 (patch)
tree281c97425c6b6cda82b3b550e34eb3c495290ed3 /engine
parentbb7ba51beedc20be351a2e094e4efc19b9edd6d3 (diff)
downloadelgg-abd02013b479f84f31d97b8b90b99efb443a3477.tar.gz
elgg-abd02013b479f84f31d97b8b90b99efb443a3477.tar.bz2
Closes #305
git-svn-id: https://code.elgg.org/elgg/trunk@2051 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/input.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index e5dd87801..2b72c5264 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -93,11 +93,11 @@
function parse_urls($text) {
- if (preg_match_all('/(?<!href=["\'])((ht|f)tps?:\/\/[^\s\r\n\t<>"\'\!\(\)]+)/ie', $text, $urls)) {
+ if (preg_match_all('/(?<!=["\'])((ht|f)tps?:\/\/[^\s\r\n\t<>"\'\!\(\)]+)/ie', $text, $urls)) {
foreach (array_unique($urls[1]) AS $url){
$urltext = $url;
- $text = str_replace($url, '<a href="'. $url .'" style="text-decoration:underline;">'. elgg_echo("link:view") .'</a>', $text);
+ $text = str_replace($url, '<a href="'. $url .'" style="text-decoration:underline;">'. elgg_echo("link:view") .'</a>', $text);
}
}