Skip to content

Commit 1013f48

Browse files
author
mimidots
committed
Function to sanitize external data added
1 parent 1600faa commit 1013f48

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Builder.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,11 @@ public function drop()
411411
}
412412

413413
}
414+
private static function sanitize($data)
415+
{
416+
$data = trim($data);
417+
$data = stripslashes($data);
418+
$data = htmlspecialchars($data);
419+
return $data;
420+
}
414421
}

0 commit comments

Comments
 (0)