From 9c9f514752f5d1a599c9a3b62d9755be853cc255 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 19 Oct 2013 22:45:50 +1300 Subject: [PATCH] tweak text2html to fix html generation error. for some reason anchors arn't working in the header? --- rebuild.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebuild.php b/rebuild.php index f328dd3..2271786 100644 --- a/rebuild.php +++ b/rebuild.php @@ -115,9 +115,9 @@ function hesc($sz) { function text2html($sz) { $base = hesc($sz); - $base = preg_replace('~(https?://[^ \\r\\n\\t]+)~i', '\\1', $base); $base = preg_replace('~=+(.+)=+~', '\\1', $base); + $base = preg_replace('~(https?://[^ \\r\\n\\t]+)~i', '\\1', $base); $btparts = explode('`', $base); if (count($btparts) > 1 && (count($btparts) % 2)) {