2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-21 05:25:32 +00:00

fix bug#203 xdsh could not recognize single quote mark

This commit is contained in:
huweihua
2015-09-27 23:10:11 -04:00
parent 32b9a9cb4e
commit 58e825691f

View File

@ -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." ";
}