Skip to content

A free open source IT asset/license management system

Bumped threshold for higher res screens when signing for assets (png creation)

snipe223f960ec95f
diff --git a/app/Http/Controllers/Account/AcceptanceController.php b/app/Http/Controllers/Account/AcceptanceController.php
index c53c9843b8..cf11553ad9 100644
--- a/app/Http/Controllers/Account/AcceptanceController.php
+++ b/app/Http/Controllers/Account/AcceptanceController.php
@@ -177,12 +177,12 @@ class AcceptanceController extends Controller
// width/height is rejected without imagecreatefromstring
// decoding the raster or the flatten path allocating a second
// same-size buffer. IMAGETYPE_PNG is enforced because the
- // signature-pad JavaScript creates only PNG files.
+ // signature-pad JavaScript creates only PNG files.
$imgInfo = @getimagesizefromstring($decoded_image);
if ($imgInfo === false
|| $imgInfo[2] !== IMAGETYPE_PNG
- || $imgInfo[0] > 2000
- || $imgInfo[1] > 2000
+ || $imgInfo[0] > 6000
+ || $imgInfo[1] > 6000
) {
return redirect()->back()->with('error', trans('general.shitty_browser'));
}