From 59ef5c863ee9173e1c3f74555ce63541c09f2f69 Mon Sep 17 00:00:00 2001 From: Romain 'Maz' BILLOIR Date: Thu, 4 Jun 2020 23:28:02 +0200 Subject: [PATCH] Support for absolute path --- webp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webp.php b/webp.php index f09ad93..b63f172 100644 --- a/webp.php +++ b/webp.php @@ -19,7 +19,7 @@ */ function main() { - $source = $_GET['path']; + $source = parse_url($_GET['path'])['path']; // Prefix the input path with a slash if it is not there already. if (strpos($source, '/') !== 0) {