From 170e798dfbd8c73382cee76176859328c8f287ea Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 5 Jun 2023 14:31:20 +0200 Subject: [PATCH] wip #5991 @0.25 --- app/process.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/process.php b/app/process.php index 8ba2aa0..b73dcbe 100644 --- a/app/process.php +++ b/app/process.php @@ -16,9 +16,9 @@ if (!isset($_POST['pdf'])) { } else { $class = ProcessFile::class; } - $p = new $class($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], $_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); + $p = new $class($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } else { - $p = new ProcessToolboxPDFFile($_POST['pdf'], $_POST['out'], $_POST['page'], $_POST['format'], $_POST['resolution'], $_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); + $p = new ProcessToolboxPDFFile($_POST['pdf'], $_POST['out'], $_POST['page'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } $res = $p->process(); die($res); \ No newline at end of file -- 2.39.5