3
1
Back

"$host$path/$rel"; function api_version() { return $base.$rel; } extract(parse_url($base)); $path = ''; } /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; $n > 0; $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ } /* OotS uses some kind of referer check which prevents.

New Pull Request