Commit 7b218095 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

check extension first

parent 13670eae
......@@ -37,10 +37,10 @@ require_once("call_filter.php");
$target_filename = $_GET['kml'];
if (!is_file($target_filename)){
if (substr($target_filename,-4,4)!=".kml"){
die("-1");
}else{
if (substr($target_filename,-4,4)!=".kml"){
if (!is_file($target_filename)){
die("-2");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment