From d059bd9ba4678a269b070844a81fba1344f6be1a Mon Sep 17 00:00:00 2001 From: Sergey Zakharchenko Date: Fri, 10 Mar 2023 20:23:34 +0000 Subject: [PATCH] Audio URL not redirecting properly fix --- php/classes/controllers/class-frontend-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/classes/controllers/class-frontend-controller.php b/php/classes/controllers/class-frontend-controller.php index a0678d44..4ea06b99 100644 --- a/php/classes/controllers/class-frontend-controller.php +++ b/php/classes/controllers/class-frontend-controller.php @@ -986,7 +986,7 @@ public function download_file() { } } - if ( 'test-nginx' !== $_GET['ref'] ) { + if ( 'test-nginx' !== $referrer ) { // Allow other actions - functions hooked on here must not output any data do_action( 'ssp_file_download', $file, $episode, $referrer ); }