diff options
author | Andreas Gohr <andi@splitbrain.org> | 2024-01-08 16:00:32 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2024-01-08 16:00:32 +0100 |
commit | 0a034b36c92fee45ecf59910fffce23cce9ea0d4 (patch) | |
tree | b9d60f220b0c4dbf51f4d805692227bad1b90900 | |
parent | f11d30144b67d43a881b90feb9d26c33af3c8c2f (diff) | |
download | dokuwiki-0a034b36c92fee45ecf59910fffce23cce9ea0d4.tar.gz dokuwiki-0a034b36c92fee45ecf59910fffce23cce9ea0d4.zip |
do not pass referrer on api retry. fixes #3824
Our cache system ignores purge requests that have a referrer. The idea
is to avoid permanent recaching because a purge link was posted
somewhere.
However for the retry link in the extension manager we actually want the
link to work. So this patch supresses the referrer for that link.
-rw-r--r-- | lib/plugins/extension/admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/extension/admin.php b/lib/plugins/extension/admin.php index edced2134..9dad12761 100644 --- a/lib/plugins/extension/admin.php +++ b/lib/plugins/extension/admin.php @@ -57,7 +57,7 @@ class admin_plugin_extension extends AdminPlugin if (!$repository->hasAccess(!$INPUT->bool('purge'))) { $url = $this->gui->tabURL('', ['purge' => 1], '&'); msg($this->getLang('repo_error') . - ' [<a href="' . $url . '">' . $this->getLang('repo_retry') . '</a>]', -1); + ' [<a href="' . $url . '" rel="noreferrer">' . $this->getLang('repo_retry') . '</a>]', -1); } if (!in_array('ssl', stream_get_transports())) { |