We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 029305e commit 254ced6Copy full SHA for 254ced6
CodeSniffer/Reports/Notifysend.php
@@ -82,7 +82,7 @@ public function __construct()
82
{
83
$path = PHP_CodeSniffer::getConfigData('notifysend_path');
84
if ($path !== null) {
85
- $this->path = $path;
+ $this->path = escapeshellcmd($path);
86
}
87
88
$timeout = PHP_CodeSniffer::getConfigData('notifysend_timeout');
@@ -246,7 +246,7 @@ protected function notifyErrors($msg)
246
*/
247
protected function getBasicCommand()
248
249
- $cmd = escapeshellcmd($this->path);
+ $cmd = $this->path;
250
$cmd .= ' --category dev.validate';
251
$cmd .= ' -h int:transient:1';
252
$cmd .= ' -t '.(int) $this->timeout;
0 commit comments