File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
* @copyright Copyright (c) 2021, Sunhill Technology <www.sunhillint.com>
10
10
* @license https://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License, version 3.0
11
11
* @link https://github.com/msbatal/PHP-Data-Security-Class
12
- * @version 1.4.0
12
+ * @version 1.4.1
13
13
*/
14
14
15
15
class SunFilter
@@ -38,9 +38,11 @@ public function __construct() {
38
38
* @return object
39
39
*/
40
40
public function sanitize ($ data = null , $ type = null ) {
41
+ /*
41
42
if (empty($type) || empty($data)) {
42
43
throw new \Exception('Missing parameter for sanitization.');
43
44
}
45
+ */
44
46
$ this ->result = null ;
45
47
switch ($ type ) {
46
48
case 'string ' :
@@ -81,9 +83,11 @@ public function sanitize($data = null, $type = null) {
81
83
* @return object
82
84
*/
83
85
public function validate ($ data = null , $ type = null ) {
86
+ /*
84
87
if (empty($type) || empty($data)) {
85
88
throw new \Exception('Missing parameter for validation.');
86
89
}
90
+ */
87
91
$ this ->result = false ;
88
92
switch ($ type ) {
89
93
case 'boolean ' :
You can’t perform that action at this time.
0 commit comments