2 ms·
This is why you should always construct paths in particular and URIs in general using your languages' path APIs instead of string interpolation. That doesn't p
by hinkley 7y ago
This is why you should always construct paths in particular and URIs in general using your languages' path APIs instead of string interpolation.
That doesn't protect you fully. You still have to check that $myfile is not undefined or "", but it helps with related problems and it tends to arrange the code in such a way that the lack of further sanity checks sticks out a bit more.