Skip to content

Commit bcd4ce8

Browse files
committed
Fix XSS in normalization.js
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
1 parent 9bce7da commit bcd4ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/normalization.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function goTo2NFStep1() {
8282
$("#mainContent #extra").html(data.extra);
8383
$("#mainContent #newCols").html('');
8484
if (data.subText !== '') {
85-
$('.tblFooters').html('<input type="submit" value="' + PMA_messages.strDone + '" onclick="processDependencies(\'' + data.primary_key + '\');">');
85+
$('.tblFooters').html('<input type="submit" value="' + PMA_messages.strDone + '" onclick="processDependencies(\'' + escapeJsString(escapeHtml(data.primary_key)) + '\');">');
8686
} else {
8787
if (normalizeto === '3nf') {
8888
$("#mainContent #newCols").html(PMA_messages.strToNextStep);

0 commit comments

Comments
 (0)