mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 15:24:00 +01:00
No need to str_replace ../, as that isn't real protection, use realpath instead Always turn into a real path (we'll only pass relative paths here anyway), and change \ to / on Windows setups Only if file exists and begins with the root path do anything, die otherwise
7.4 KiB
7.4 KiB