Skip to content

Commit

Permalink
Fix for watermarks in PHP
Browse files Browse the repository at this point in the history
Some watermark identifiers were causing signature errors if they
contained special characters such as backslashes.
  • Loading branch information
GrabzIt committed Mar 10, 2017
1 parent f6e6f13 commit 9d98736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://grabz.it/",
"description": "Use our API to allow your app to create images and PDF's from URL's or raw HTML. Additionally GrabzIt allows you to convert online videos into animated GIF's or HTML tables into CSV's.",
"license": "MIT",
"version":"3.0.2.3",
"version":"3.0.3",
"autoload": {
"classmap": [
"lib/GrabzItAnimationOptions.class.php",
Expand Down
4 changes: 2 additions & 2 deletions php/lib/GrabzItClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@ public function AddWaterMark($identifier, $path, $xpos, $ypos)

$content .= "--".$boundary."\r\n".
"Content-Disposition: form-data; name=\"key\"\r\n\r\n".
urlencode($this->applicationKey) . "\r\n";
$this->applicationKey . "\r\n";

$content .= "--".$boundary."\r\n".
"Content-Disposition: form-data; name=\"identifier\"\r\n\r\n".
urlencode($identifier) . "\r\n";
$identifier . "\r\n";

$content .= "--".$boundary."\r\n".
"Content-Disposition: form-data; name=\"xpos\"\r\n\r\n".
Expand Down

0 comments on commit 9d98736

Please sign in to comment.