aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/input.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index b338e530c..80329462e 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -116,12 +116,12 @@
**/
function parse_urls($text) {
-
+
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);
+ $urltext = str_replace('/', '/<wbr />', $url);
+ $text = str_replace($url, '<a href="'. $url .'" style="text-decoration:underline;">'. $urltext .'</a>', $text);
}
}