mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Add index.php files to upload directories to prevent file traversal
This commit is contained in:
1
post.php
1
post.php
@@ -1015,6 +1015,7 @@ if(isset($_POST['add_client'])){
|
||||
|
||||
if(!file_exists("uploads/clients/$session_company_id/$client_id")) {
|
||||
mkdir("uploads/clients/$session_company_id/$client_id");
|
||||
file_put_contents("uploads/clients/$session_company_id/$client_id/index.php", "");
|
||||
}
|
||||
|
||||
//Add Location
|
||||
|
||||
Reference in New Issue
Block a user