You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Security-VM/image/image_check_prefix.php

10 lines
217 B

<?php
// Controleer of de string begint met 'uploads'
if(substr($_GET['file'], 0, 7) == 'uploads') {
echo file_get_contents('../../' . $_GET['file']);
} else {
echo "Bestand moet in uploads map staan!";
}
?>