mirror of
https://github.com/webmin/webmin.git
synced 2026-05-08 00:00:27 +01:00
Use correct escaping funtion for JS
This commit is contained in:
@@ -25,7 +25,7 @@ if ($in{'multi'}) {
|
||||
print "selr = new Array($len);\n";
|
||||
for($i=0; $i<$len; $i++) {
|
||||
print "sel[$i] = \"".
|
||||
"e_escape($ul[$i], '"')."\";\n";
|
||||
quotemeta($ul[$i], '"')."\";\n";
|
||||
|
||||
# samba valid system user can start with @ + &
|
||||
$gn = $ul[$i];
|
||||
@@ -35,7 +35,7 @@ if ($in{'multi'}) {
|
||||
#@uinfo = getpwnam($ul[$i]);
|
||||
if (@uinfo) {
|
||||
print "selr[$i] = \"".
|
||||
"e_escape($uinfo[6])."\";\n";
|
||||
quotemeta($uinfo[6])."\";\n";
|
||||
}
|
||||
else {
|
||||
print "selr[$i] = \"???\";\n";
|
||||
|
||||
Reference in New Issue
Block a user