Skip to content

Commit

Permalink
strip tags input value
Browse files Browse the repository at this point in the history
  • Loading branch information
idoalit authored May 11, 2019
1 parent 784b1a9 commit f278444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/contents/visitor.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ function setCounter($str_member_ID) {
} else {
// non member
$_d = $_q->fetch_assoc();
$member_name = $dbs->escape_string(trim($_POST['memberID']));
$_institution = $dbs->escape_string(trim($_POST['institution']));
$member_name = $dbs->escape_string(trim(strip_tags($_POST['memberID'])));
$_institution = $dbs->escape_string(trim(strip_tags($_POST['institution'])));
$photo = 'non_member.png';
$_checkin_date = date('Y-m-d H:i:s');
if (!$_institution) {
Expand Down

0 comments on commit f278444

Please sign in to comment.