in reply to Image on web page
Consider what might be served back to the outside world if the "photo" param was '../../../../usr/mydata/private.txt' for example.
You're creating a script which could potentially give read-access to any file on the server. As a first step, look up "taint mode" and turn it on!
|
|---|