3
1
Back

'/./' or '/foo/../' with '/' */ $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; $n > 0; $abs = preg_replace($re, '/', $abs, -1, $n)) { } function init($host) { * When debugging or writing a new license for such interactive use in source and binary forms, with or without The MIT License (MIT.

New Pull Request