Skip to content

Commit

Permalink
Fixed issues xthiago#6 and xthiago#7
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico De Gaudenzi committed Jan 6, 2017
1 parent 4aff310 commit cdeee26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Converter/GhostscriptConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GhostscriptConverter implements ConverterInterface
* Directory where temporary files are stored.
* @var string
*/
protected $tmp = '/tmp';
protected $tmp = sys_get_temp_dir();

/**
* @param GhostscriptConverterCommand $command
Expand Down
2 changes: 1 addition & 1 deletion src/Converter/GhostscriptConverterCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct()

public function run($originalFile, $newFile, $newVersion)
{
$command = sprintf($this->baseCommand, $newVersion, $newFile, $originalFile);
$command = sprintf($this->baseCommand, $newVersion, $newFile, escapeshellarg($originalFile));

$process = new Process($command);
$process->run();
Expand Down

0 comments on commit cdeee26

Please sign in to comment.