From 02808c8d121179d1533143f1f8da0d9d87bad1f2 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 18 Apr 2016 20:57:01 +0200 Subject: [PATCH] Bugfix: ' in titles were a problem. --- mod/parse_url.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mod/parse_url.php b/mod/parse_url.php index bf111f143..6a1fc1101 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -488,7 +488,14 @@ function parse_url_content(&$a) { unset($siteinfo["keywords"]); - echo add_page_info_data($siteinfo); + $info = add_page_info_data($siteinfo); + + if (!$textmode) + // Replace ' with ’ - not perfect - but the richtext editor has problems otherwise + $info = str_replace(array("'"), array("’"), $info); + + echo $info; + killme(); } ?>