3
1
Back

Return array( $html, $content_type); } function rel2abs($rel, $base) { function rel2abs($rel, $base) { Various updates, additions /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; // [0:No, 1:Yes] // Do you want it, that you have.

New Pull Request