aboutsummaryrefslogtreecommitdiffstats
path: root/include/activities.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-09 21:26:18 -0800
committerMario <mario@mariovavti.com>2017-11-11 21:42:49 +0100
commitf7e3d0dbf6a763557d3431c6d12a6dde1be5648b (patch)
tree16b6425d9b667cfb2ec9c3163c7907e631a29acc /include/activities.php
parente2eb36ded6ae61b949bb5948145c007b1522faf9 (diff)
downloadvolse-hubzilla-f7e3d0dbf6a763557d3431c6d12a6dde1be5648b.tar.gz
volse-hubzilla-f7e3d0dbf6a763557d3431c6d12a6dde1be5648b.tar.bz2
volse-hubzilla-f7e3d0dbf6a763557d3431c6d12a6dde1be5648b.zip
hubzilla issue #901 - unicode characters in urls tripping up url regexes - these regexes have been modified to accept unicode "letters" which may preclude emojis and control sequences and symbols in url links; but should suffice for most legal URLs containing language context "text" glyphs.
Diffstat (limited to 'include/activities.php')
-rw-r--r--include/activities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/activities.php b/include/activities.php
index 2671e668c..9b83f7a5c 100644
--- a/include/activities.php
+++ b/include/activities.php
@@ -50,7 +50,7 @@ function profile_activity($changed, $value) {
if($t == 1 && strlen($value)) {
// if it's a url, the HTML quotes will mess it up, so link it and don't try and zidify it because we don't know what it points to.
- $value = preg_replace_callback("/([^\]\='".'"'."]|^|\#\^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]+)/ism", 'red_zrl_callback', $value);
+ $value = preg_replace_callback("/([^\]\='".'"'."]|^|\#\^)(https?\:\/\/[a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]+)/ismu", 'red_zrl_callback', $value);
// take out the bookmark indicator
if(substr($value,0,2) === '#^')
$value = str_replace('#^','',$value);