Skip to content

Commit 0148cf2

Browse files
authored
Update SunFilter.php
1 parent da38550 commit 0148cf2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SunFilter.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @copyright Copyright (c) 2021, Sunhill Technology <www.sunhillint.com>
1010
* @license https://opensource.org/licenses/lgpl-3.0.html The GNU Lesser General Public License, version 3.0
1111
* @link https://github.com/msbatal/PHP-Data-Security-Class
12-
* @version 1.4.0
12+
* @version 1.4.1
1313
*/
1414

1515
class SunFilter
@@ -38,9 +38,11 @@ public function __construct() {
3838
* @return object
3939
*/
4040
public function sanitize($data = null, $type = null) {
41+
/*
4142
if (empty($type) || empty($data)) {
4243
throw new \Exception('Missing parameter for sanitization.');
4344
}
45+
*/
4446
$this->result = null;
4547
switch ($type) {
4648
case 'string':
@@ -81,9 +83,11 @@ public function sanitize($data = null, $type = null) {
8183
* @return object
8284
*/
8385
public function validate($data = null, $type = null) {
86+
/*
8487
if (empty($type) || empty($data)) {
8588
throw new \Exception('Missing parameter for validation.');
8689
}
90+
*/
8791
$this->result = false;
8892
switch ($type) {
8993
case 'boolean':

0 commit comments

Comments
 (0)