[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 150/219: HttpInput: Exception if the type is
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 150/219: HttpInput: Exception if the type is not known |
Date: |
Mon, 18 Dec 2017 13:22:54 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2bb31c71804a5849c6a481753d878960ff989a86
Author: Dany De Bontridder <address@hidden>
Date: Wed Nov 15 19:57:37 2017 +0100
HttpInput: Exception if the type is not known
---
include/lib/http_input.class.php | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php
index f286d8d..d486cd6 100644
--- a/include/lib/http_input.class.php
+++ b/include/lib/http_input.class.php
@@ -48,14 +48,14 @@ class HttpInput
if ($p_type=="string")
return;
// Check if number
- if ($p_type=="number"&&isNumber($this->array[$p_name])==0
)
+ else if ($p_type=="number"&&isNumber($this->array[$p_name])==0 )
{
$this->array[$p_name]=h($this->array[$p_name]);
throw new Exception(_("Type invalide")."[ $p_name ] =
{$this->array[$p_name]}"
, EXC_PARAM_TYPE);
}
// Check if date dd.mm.yyyy
- if ($p_type=="date")
+ else if ($p_type=="date")
{
if (isDate($this->array[$p_name]) <> $this->array[$p_name])
{
@@ -64,11 +64,13 @@ class HttpInput
, EXC_PARAM_TYPE);
}
}
- if ($p_type=="array"&&!is_array($this->array[$p_name]))
+ else if ($p_type=="array"&&!is_array($this->array[$p_name]))
{
$this->array[$p_name]=h($this->array[$p_name]);
throw new Exception(_("Type invalide")."[ $p_name ] =
{$this->array[$p_name]}"
, EXC_PARAM_TYPE);
+ }else {
+ throw new Exception(_("Unknown type"));
}
}
catch (Exception $ex)
- [Noalyss-commit] [noalyss] 130/219: ANC groupe : little bug in PLANANC, allow a group null, (continued)
- [Noalyss-commit] [noalyss] 130/219: ANC groupe : little bug in PLANANC, allow a group null, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 142/219: ANC : balance croisée double fixe SQL query, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 160/219: INSTALL : check PHP version minimum 5.5, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 219/219: Task #1378 : show only the ledger of a given type, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 215/219: ICheckBox : add attribute to allow to select checkbox thanks its attribute with the js select_checkbox_attribute, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 170/219: Traduction, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 216/219: Task #1378 : select ledger thanks their type, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 201/219: Task #0001507: Click sur détail opérations apparaît trop haut Problem comes from window.onload loaded with detail operation. Move into do.php , recherche.php , popup.php from script.js, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 40/219: Test : utilisation nouvelle police nouveau theme Stock... Correction bug http_input SQL : correction table jnt_letter , col. inutile, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 86/219: Improve appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 150/219: HttpInput: Exception if the type is not known,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 98/219: esthetic change icon, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 141/219: CSS Esthetic : comment span or IText can have the CSSclass label_item, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 117/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN remove dead code, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 153/219: HtmlInput: fix small bug in fct image_click, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 158/219: Fix issue with open_basedir, sometime set in the server config, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 148/219: ANC : esthetic ; remove inline CSS, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 77/219: PRINTJRN : enlève num opération, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 145/219: ANC : Bouton "recherche" sont des loupes, ajout title, Dany De Bontridder, 2017/12/18