3
1
Back

Or '/./' or '/foo/../' with '/' */ $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; $n > 0; $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 is ready! */ return $scheme . '://' . $abs; Latest commits for file PSU/psu.diy Add PSU PSU/PSU.md | 5 | 100nF | Unpolarized capacitor | | | | | | | | | | | | | | | Tayda | A-159 | | | | R5 | 1 | B20k | Potentiometer .

New Pull Request