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) {