diff options
author | zotlabs <mike@macgirvin.com> | 2018-08-13 23:11:10 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-08-13 23:11:10 -0700 |
commit | 12f4787b67561be8afc78620823b81e290cddfaa (patch) | |
tree | fdbcfe491003107018a286bb112a869ffe2856d6 /include/markdown.php | |
parent | f15c1c4e54a49d1e76747ca5e3034ca2cef909aa (diff) | |
download | volse-hubzilla-12f4787b67561be8afc78620823b81e290cddfaa.tar.gz volse-hubzilla-12f4787b67561be8afc78620823b81e290cddfaa.tar.bz2 volse-hubzilla-12f4787b67561be8afc78620823b81e290cddfaa.zip |
issue with mdpost addon and archive.org links which contain a full url as a path/query component
Diffstat (limited to 'include/markdown.php')
-rw-r--r-- | include/markdown.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/markdown.php b/include/markdown.php index 1b3538306..f4944e2cc 100644 --- a/include/markdown.php +++ b/include/markdown.php @@ -82,10 +82,10 @@ function markdown_to_bb($s, $use_zrl = false, $options = []) { $s = preg_replace_callback("/\[img\](.*?)\[\/img\]/ism", 'use_zrl_cb_img', $s); $s = preg_replace_callback("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", 'use_zrl_cb_img_x', $s); } - $s = preg_replace_callback("/([^\]\=\{]|^)(https?\:\/\/)([a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@\(\)]+)/ismu", 'use_zrl_cb_link',$s); + $s = preg_replace_callback("/([^\]\=\{\/]|^)(https?\:\/\/)([a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@\(\)]+)/ismu", 'use_zrl_cb_link',$s); } else { - $s = preg_replace("/([^\]\=\{]|^)(https?\:\/\/)([a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@\(\)]+)/ismu", '$1[url=$2$3]$2$3[/url]',$s); + $s = preg_replace("/([^\]\=\{\/]|^)(https?\:\/\/)([a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@\(\)]+)/ismu", '$1[url=$2$3]$2$3[/url]',$s); } // remove duplicate adjacent code tags |