mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-21 13:35:32 +00:00
fix bug#203 xdsh could not recognize single quote mark
This commit is contained in:
@ -2503,8 +2503,9 @@ sub service_connection {
|
||||
if(exists($req->{arg})){
|
||||
foreach my $arg (@{$req->{arg}}) {
|
||||
if($arg =~ /[^A-Za-z0-9.-]/){
|
||||
$arg =~ s/'/'\\''/g;
|
||||
$cmdlog_alllog .= "'".$arg."' ";
|
||||
my $tmparg = $arg;
|
||||
$tmparg =~ s/'/'\\''/g;
|
||||
$cmdlog_alllog .= "'".$tmparg."' ";
|
||||
}else{
|
||||
$cmdlog_alllog .= $arg." ";
|
||||
}
|
||||
|
Reference in New Issue
Block a user