From e2b6464f83313bd56c2d9c962e089d978927cdfd Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 29 Aug 2017 20:07:26 -0700 Subject: escape 'http' inside code blocks so it doesn't trigger an oembed --- include/text.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/text.php') 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('' . $o . ''); } -- cgit v1.2.3