We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4604eb0 + a435bb7 commit 25941f2Copy full SHA for 25941f2
lib/PHPExif/Adapter/Exiftool.php
@@ -100,15 +100,13 @@ public function getToolPath()
100
*/
101
public function getExifFromFile($file)
102
{
103
- $gpsFormat = '%d deg %d\' %.4f\"';
104
-
105
$result = $this->getCliOutput(
106
sprintf(
107
- '%1$s%3$s -j -c "%4$s" %2$s',
+ '%1$s%3$s -j -c %4$s %2$s',
108
$this->getToolPath(),
109
- $file,
+ escapeshellarg($file),
110
$this->numeric ? ' -n' : '',
111
- $gpsFormat
+ escapeshellarg('%d deg %d\' %.4f"')
112
)
113
);
114
0 commit comments