mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-18 16:18:04 +00:00
Fixed security breach issue
This commit is contained in:
@ -500,7 +500,7 @@ function checkUserDirectoryValidity(string $directory) : bool {
|
||||
return FALSE;
|
||||
|
||||
//Check if the domain contains forbidden characters
|
||||
if(str_replace(array(".html", ".txt", ".php", "à", "â", "é", "ê", "@", "/", "\"", "'", '"'), "", $directory) != $directory)
|
||||
if(str_replace(array(".html", ".txt", ".php", "à", "â", "é", "ê", "@", "/", "\"", "'", '"', "<", ">", "?", "&", "#"), "", $directory) != $directory)
|
||||
return FALSE;
|
||||
|
||||
//If we get there, the domain is valid
|
||||
|
Reference in New Issue
Block a user