XSS 취약점 해결

This commit is contained in:
gnuboard
2013-08-22 16:14:29 +09:00
parent a0b352db23
commit b598c94537
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ if ($view == "w")
else if ($view == "c")
$sql_common .= " and a.wr_id <> a.wr_parent ";
$mb_id = isset($_GET['mb_id']) ? $_GET['mb_id'] : "";
$mb_id = isset($_GET['mb_id']) ? strip_tags($_GET['mb_id']) : "";
if ($mb_id) {
$sql_common .= " and a.mb_id = '{$mb_id}' ";
}