3
1
Back

(ADD_IDS) { $new_element->appendChild($para_element); if ($alt_text && !$title_text){ Various updates, additions /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo.

New Pull Request