mirror of
https://github.com/webmin/webmin.git
synced 2026-08-08 00:40:37 +01:00
Fix to do more filtering to address reported XSS issue
This commit is contained in:
@@ -16,7 +16,7 @@ foreach $t (keys %utext) {
|
||||
if (!$in{$field."_def"}) {
|
||||
$in{$field} ||
|
||||
&error(&text('categories_edesc', $t ? $t : 'other'));
|
||||
$catnames{$t} = $in{$field};
|
||||
$catnames{$t} = &filter_javascript($in{$field});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ foreach $t (keys %text) {
|
||||
$field = $t || "other";
|
||||
if (!$in{$field."_def"}) {
|
||||
$in{$field} || &error(&text('categories_edesc', $t || 'other'));
|
||||
$catnames{$t} = $in{$field};
|
||||
$catnames{'other'} = $in{$field} if ($t eq "");
|
||||
$catnames{$t} = &filter_javascript($in{$field});
|
||||
$catnames{'other'} = &filter_javascript($in{$field}) if ($t eq "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user