From b5083aaabd4103dea8fbb81125b106b9cce965a0 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Thu, 28 Jul 2022 21:50:52 +0200 Subject: [PATCH] Fixes a bug about null by ref variable --- lib-htmgem.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib-htmgem.inc.php b/lib-htmgem.inc.php index dea91a6..2c31405 100644 --- a/lib-htmgem.inc.php +++ b/lib-htmgem.inc.php @@ -319,6 +319,7 @@ class GemtextTranslate_html { protected static function spacesCompress(&$text) { # Replaces several spaces (0x20) by only one + if (empty($text)) $text = ""; $text = preg_replace("/ +/", " ", $text); }