Browse Source

Usage of "escapeshellarg" has been added to "yii\console\controllers\AssetController::actionCompress()".

tags/2.0.0-beta
Klimov Paul 12 years ago
parent
commit
2c930ae2cd
  1. 8
      yii/console/controllers/AssetController.php

8
yii/console/controllers/AssetController.php

@ -365,8 +365,8 @@ EOD
$tmpFile = $outputFile . '.tmp';
$this->combineJsFiles($inputFiles, $tmpFile);
$log = shell_exec(strtr($this->jsCompressor, array(
'{from}' => $tmpFile,
'{to}' => $outputFile,
'{from}' => escapeshellarg($tmpFile),
'{to}' => escapeshellarg($outputFile),
)));
@unlink($tmpFile);
} else {
@ -385,8 +385,8 @@ EOD
$tmpFile = $outputFile . '.tmp';
$this->combineCssFiles($inputFiles, $tmpFile);
$log = shell_exec(strtr($this->cssCompressor, array(
'{from}' => $tmpFile,
'{to}' => $outputFile,
'{from}' => escapeshellarg($tmpFile),
'{to}' => escapeshellarg($outputFile),
)));
@unlink($tmpFile);
} else {

Loading…
Cancel
Save