mirror of
https://github.com/webmin/webmin.git
synced 2025-08-01 15:36:00 +00:00
Escape to prevent command expansion
This commit is contained in:
@ -622,7 +622,12 @@ else {
|
||||
sub escapestr
|
||||
{
|
||||
local $rv = $_[0];
|
||||
|
||||
# Prevent escaping query
|
||||
$rv =~ s/'/''/g;
|
||||
|
||||
# Prevent escaping command
|
||||
$rv =~ s/"/\\"/g;
|
||||
return $rv;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user