News for hackers. Stuff that matters.
Re:Why Does Windows Use Backslash as Path Separator? by Atomskun on Wednesday April 24, 2024 @06:27PM (#40150619)
How in the world is your rant in linked file supposed to work?

* It seems you decide whether to execute a file by its extension, e.g. `.php`

* You are complaining that Windows is stripping away spaces, so `.php ` becomes `.php`

* And supposedly this could lead the file being served as static text if you didn't have a Windows workaround?

It rather seems to me that POSIX accepting `.php ` as a filename, and this not being picked up by a `.php` check is problematic here.

Re:Why Does Windows Use Backslash as Path Separator? by mholt on Wednesday April 24, 2024 @06:44PM (#40150775)
No, look at the associated unit test: https://github.com/caddyserver/caddy/blob/c6eb186064091c79f4...

If that test fails we could serve PHP source code instead of having it be evaluated, a potential security flaw.