mirror of
https://github.com/webmin/webmin.git
synced 2026-06-19 02:40:32 +01:00
Fix double escaping
This commit is contained in:
@@ -210,12 +210,12 @@ Quote all characters that are unsafe for inclusion in javascript strings in HTML
|
||||
sub quote_javascript
|
||||
{
|
||||
my ($str) = @_;
|
||||
$str =~ s/\\/\\\\/g;
|
||||
$str =~ s/"/\\"/g;
|
||||
$str =~ s/'/\\'/g;
|
||||
$str =~ s/</\\</g;
|
||||
$str =~ s/>/\\>/g;
|
||||
$str =~ s/&/\\&/g;
|
||||
$str =~ s/\\/\\\\/g;
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user