diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-29 20:07:26 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-29 20:07:26 -0700 |
commit | e2b6464f83313bd56c2d9c962e089d978927cdfd (patch) | |
tree | 5ee7d718d69fcc11076db09cd18879785928ebb8 /include/text.php | |
parent | 973f15438adb44f50e01807013b3f23e25bda2c8 (diff) | |
download | volse-hubzilla-e2b6464f83313bd56c2d9c962e089d978927cdfd.tar.gz volse-hubzilla-e2b6464f83313bd56c2d9c962e089d978927cdfd.tar.bz2 volse-hubzilla-e2b6464f83313bd56c2d9c962e089d978927cdfd.zip |
escape 'http' inside code blocks so it doesn't trigger an oembed
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index dd2dc7620..4b34364ce 100644 --- a/include/text.php +++ b/include/text.php @@ -2986,6 +2986,8 @@ function text_highlight($s, $lang) { else $o = $s; + $o = str_replace('http','%eY9-!',$o); + return('<code>' . $o . '</code>'); } |