diff --git a/funciones/funciones.php b/funciones/funciones.php index 571ce9e..0b2789b 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -12867,7 +12867,7 @@ function imprime_geojson($id,$id2,$plantilla,$busqueda,$item){ if($busqueda !="") { $busqueda = explode(':',$busqueda); if($busqueda[1] !="") { - $busqueda[1] = htmlentities($busqueda[1]); + $busqueda[1] = urldecode($busqueda[1]); $consulta = "SELECT form_id as id, control, timestamp, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data diff --git a/geojson.js b/geojson.js index 0a4c019..bef85e2 100644 --- a/geojson.js +++ b/geojson.js @@ -7,11 +7,11 @@ require ('funciones/convert.php'); require ("funciones/conex.php"); - -$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]"); + +$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]",""); //header('Content-Type: application/json'); var geojsonSample = echo $geojson; ; -?> \ No newline at end of file +?>