Keep uploads outside the web root.
save_uploaded_file() read, and prune_images() deleted, any path in the "uploaded" POST field. Uploads now go to UPLOAD_DIR under a random name that only the session knows.
This commit is contained in:
@@ -60,7 +60,7 @@ echo (isset($story) ? $story : '')
|
||||
<?php
|
||||
if (isset($file_src) || isset($img)) {
|
||||
if (isset($file_src)) {
|
||||
echo ' <input type="hidden" id="uploaded" name="uploaded" value="'.$file_src.'" />';
|
||||
echo ' <input type="hidden" id="uploaded" name="uploaded" value="pending" />';
|
||||
} else {
|
||||
echo ' <input type="hidden" id="uploaded" name="uploaded" value="'.$id.'" />';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user