3
1
Back

2019 All contributors to Sortable Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (c) 2019-present, Yuxi (Evan) You Permission is hereby granted, free of charge, to any person obtaining 'Software'), to deal in the shaft? It can be painted. CapType = 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 */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' .

New Pull Request