Skip to content

Commit 63d5703

Browse files
committed
html and php tags will be striped from content
1 parent bc0d633 commit 63d5703

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codesvault/validator",
33
"description": "Data validation library",
4-
"version": "1.2.0",
4+
"version": "1.2.1",
55
"type": "library",
66
"license": "MIT",
77
"autoload": {

src/ValidationEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function execute($rules, $dataIdentifier)
3838
$this->errorLogHandler->add($dataIdentifier, $validate->getErrorMessage());
3939
}
4040

41-
$this->setData($dataIdentifier, $val);
41+
$this->setData($dataIdentifier, strip_tags($val));
4242
}
4343
}
4444

0 commit comments

Comments
 (0)