From 3b5de30377741d9a61f5567c45f576cfbc3b482a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 19 Mar 2016 20:09:09 +0000 Subject: [PATCH] move html_errors, tag href --- lib/php/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/page.php b/lib/php/page.php index af2d83f3..0c6ab9e4 100644 --- a/lib/php/page.php +++ b/lib/php/page.php @@ -158,7 +158,7 @@ class Page extends nb { foreach ($content as $c) { # Add missing href from content - if ($tag == 'a' and !preg_match('//',$attrs)) $attrs = trim($attrs.' href="'.$c.'"'); + if ($tag == 'a' and !preg_match('/href/',$attrs)) $attrs = trim($attrs.' href="'.$c.'"'); $tags[] = '' . '<' . $tag -- 2.47.3