Skip to content

Commit

Permalink
WIP: ajax clean
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRannou committed Dec 2, 2011
1 parent f83b33b commit 21d2d46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ajax/executecommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

$env_vars = "/Users/nr52/INSTALL/ImageMagick-6.7.3/bin/";

$fullcommand = $env_vars . $command . " ../" . $image . " ../" . $newimage;
# clean the command
$fullcommand = $env_vars . escapeshellarg($command) . " ../" . $image . " ../" . $newimage;

system($fullcommand);

#return 2 images to update visualization and show paths
echo $image . " " . $newimage;
?>

0 comments on commit 21d2d46

Please sign in to comment.