1
0
Fork 0

escape arguments

pull/377/head
till 2012-03-04 19:54:16 +01:00
parent ae15d8a5b6
commit adfac9e34b
1 changed files with 6 additions and 2 deletions

View File

@ -218,8 +218,12 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
if ($this->useAuth !== true) {
return '';
}
$str = ' --no-auth-cache --username "%s" --password "%s" ';
return sprintf($str, $this->svnUsername, $this->svnPassword);
$str = ' --no-auth-cache --username %s --password %s ';
return sprintf(
$str,
escapeshellarg($this->svnUsername),
escapeshellarg($this->svnPassword)
);
}
/**