Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

fix DataSanitizer #34

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fortress/DataSanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function sanitize($data, $on_unexpected_var = "skip") {
switch ($on_unexpected_var) {
case "allow" : $sanitizedData[$name] = $this->purgeHtmlCharacters($value); break;
case "error" : throw new \Exception("The field '$name' is not a valid input field."); break;
case "skip" : default: continue;
case "skip" : default: continue 2;
}
} else {
$sanitizedData[$name] = $this->sanitizeField($name, $value);
Expand Down