Skip to content

Commit 7f54ac8

Browse files
committed
Escape the "rotation" parameter in Command::rotation() because of the "<>" characters
1 parent 802cb65 commit 7f54ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function quality(int $quality): self
473473
public function rotate(string $rotation): self
474474
{
475475
$this->command[] = '-rotate';
476-
$this->command[] = $this->ref->rotation($rotation);
476+
$this->command[] = \escapeshellarg($this->ref->rotation($rotation));
477477

478478
return $this;
479479
}

0 commit comments

Comments
 (0)