Hi on my php project The user send the name of the theme (it's a telegram desktop theme maker) via form input. (The project is hosted on github Github Project) The problem is: I use this in the theme name the user could potentially access any folder on the serve. I tried to correct it with this commit : Github commit
$theme_name = str_replace("/", "_badyou_", $_GET["name"]); //contains the good themename
I need the just the name so I thought that eliminating the "/" is enough. But I need the opinion of someone who actually knows php better than me.
P.S sorry for my bad english. Thank you in advance.