[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 16/44: http_input : fix bug with array
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 16/44: http_input : fix bug with array |
Date: |
Wed, 26 Dec 2018 04:29:53 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 14ea453731c65f90cffdd7ba429217bd3374c7c0
Author: Dany De Bontridder <address@hidden>
Date: Fri Nov 23 23:10:50 2018 +0100
http_input : fix bug with array
---
include/lib/http_input.class.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php
index 3592270..5a5be5f 100644
--- a/include/lib/http_input.class.php
+++ b/include/lib/http_input.class.php
@@ -80,7 +80,9 @@ class HttpInput
throw new Exception(_("Type invalide")."[ $p_name ] =
{$this->array[$p_name]}"
, EXC_PARAM_TYPE);
}
- $this->array[$p_name]=h($this->array[$p_name]);
+ if (is_string($this->array )) {
+ $this->array[$p_name]=h($this->array[$p_name]);
+ }
}else {
throw new Exception(_("Unknown type"));
}
- [Noalyss-commit] [noalyss] 19/44: CSS : print number align to right, (continued)
- [Noalyss-commit] [noalyss] 19/44: CSS : print number align to right, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 18/44: css : force a.inline to be inline !, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 07/44: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 13/44: adapt to 7.2 : array, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 06/44: adapt to 7.2 ,init, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 10/44: javascript : small bug in alert_box , callback function is not defined, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 14/44: css cosmetic background for selected style-classic7, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 26/44: Version DB 131, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 24/44: Analytic accountancy : fix bug, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 20/44: Document::replace_value handle space before numeric, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 16/44: http_input : fix bug with array,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 35/44: predefined operation , find a label for an accounting thx its value, the pk is now an numeric id, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 17/44: Document : replace properly value in the OOo file, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 40/44: PHP 7.2 : sizeof attribut, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 22/44: Exception rethrow, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 37/44: cfgcurrency : file for the new version : if the file to include does not exist then display a warning and exit, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 05/44: Bug : cannot set group, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 21/44: cosmetic, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 30/44: acc_ledger_fin . translation, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 29/44: Background color, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 27/44: Quant_Fin : set the j_id when an operation is recorded, Dany De Bontridder, 2018/12/26