Skip to content

Commit

Permalink
Fix XSS in normalization
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj authored and nijel committed Feb 25, 2016
1 parent 38fa119 commit 746240b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion normalization.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
$scripts->addFile('normalization.js');
$scripts->addFile('jquery/jquery.uitablefilter.js');
$normalForm = '1nf';
if (isset($_REQUEST['normalizeTo'])) {
if (PMA_isValid($_REQUEST['normalizeTo'], array('1nf', '2nf', '3nf'))) {
$normalForm = $_REQUEST['normalizeTo'];
}
if (isset($_REQUEST['createNewTables2NF'])) {
Expand Down

0 comments on commit 746240b

Please sign in to comment.