From 8ad5eac234d4cefaa7f4447259baa50a622950bd Mon Sep 17 00:00:00 2001 From: humano Date: Sun, 5 Apr 2020 23:14:36 -0500 Subject: [PATCH] codificacion de tildes en url --- funciones/funciones.php | 2 +- geojson.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 +?>