From 5dfd5e5d1e254968256c28cfed843a10bf26e4ae Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Tue, 22 Jul 2025 14:27:13 +0300 Subject: [PATCH] Replace wp_redirect() with wp_safe_redirect() This redirect always goes back to the "Plugins" page on the same site, so this should be fine. Reported in #597 --- Puc/v5p6/Plugin/Ui.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Puc/v5p6/Plugin/Ui.php b/Puc/v5p6/Plugin/Ui.php index eee0f22..12bfd43 100644 --- a/Puc/v5p6/Plugin/Ui.php +++ b/Puc/v5p6/Plugin/Ui.php @@ -187,7 +187,7 @@ if ( !class_exists(Ui::class, false) ): } } - wp_redirect(add_query_arg( + wp_safe_redirect(add_query_arg( array( 'puc_update_check_result' => $status, 'puc_slug' => $this->updateChecker->slug,