From 78969b61a21deff0e82ba99866138fe8e8cfbfdc Mon Sep 17 00:00:00 2001 From: Matias Saggiorato Date: Mon, 15 Sep 2025 15:27:52 -0300 Subject: [PATCH] Avoid requirement of double question mark --- ngx-http-concat.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ngx-http-concat.php b/ngx-http-concat.php index c9f01fa..f105ab2 100644 --- a/ngx-http-concat.php +++ b/ngx-http-concat.php @@ -94,12 +94,10 @@ function concat_get_path( $uri ) { $args = rawurldecode( $args ); -if ( false === strpos( $args, '?' ) ) { - concat_http_status_exit( 400 ); +if ( 0 === strpos( $args, '?' ) ) { + $args = ltrim( $args, '?' ); } -$args = substr( $args, strpos( $args, '?' ) + 1 ); - // /foo/bar.css,/foo1/bar/baz.css?m=293847g // or // -eJzTT8vP109KLNJLLi7W0QdyDEE8IK4CiVjn2hpZGluYmKcDABRMDPM=