]> git.nbdom.net Git - nb.git/commitdiff
move html_errors, tag href
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 19 Mar 2016 20:09:09 +0000 (20:09 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 19 Mar 2016 20:09:09 +0000 (20:09 +0000)
lib/php/page.php

index af2d83f34b852c0f948eab0c060a96ccee3ff0ff..0c6ab9e43bccfa6da6a705623905de30f1a0167a 100644 (file)
@@ -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