in reply to Re: request for review: file reading security
in thread request for review: file reading security

Your line $req = 'index' if -e $req; will make all requests invoke "index"

no it won't.

The QUERY_STRING should not match anything, since the filename would be composed as pages/QUERY_STRING.html That's why if it matches any file, it should roll back to a default.

  • Comment on Re^2: request for review: file reading security