BUG 15012 "When creating a dynaform with the character..." SOLVED

- When creating a dynaform with the character "&", the field handlers not working.
- Problema resuelto, el problema que se teníera lo siguiente cuando se utiliza el "&" en el tílo de un dynaform,
  cuando se enviaba los datos via GET, el "&" lo interpretaba como un separador de variables y esto ocasionaba la
  division de los datos que se enviaba.	Se valida los datos enviados via GET codificáolos y al recibir estos datos
  se los decodifica.
This commit is contained in:
Luis Fernando Saisa Lopez
2014-06-10 09:57:44 -04:00
parent 7c7c5b0fcc
commit f0721fdb03
2 changed files with 10 additions and 2 deletions

View File

@@ -2,7 +2,9 @@
$response = new stdclass();
$response->status = isset($_SESSION['USER_LOGGED']);
if (isset($_REQUEST['dynaformEditorParams'])) {
$_SESSION['Current_Dynafom']['Parameters'] = unserialize(stripslashes(utf8_decode(rawurldecode($_REQUEST["dynaformEditorParams"]))));
$arrayParameterAux = unserialize(rawurldecode($_REQUEST["dynaformEditorParams"]));
$arrayParameterAux["DYNAFORM_NAME"] = base64_decode($arrayParameterAux["DYNAFORM_NAME"]);
$_SESSION["Current_Dynafom"]["Parameters"] = $arrayParameterAux;
if (isset($_REQUEST['DYN_UID'])) {
$dynaform = new dynaform();