We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 475e3e6 commit 3cb450eCopy full SHA for 3cb450e
1 file changed
content/plugins/f-gu-filter/plugin.php
@@ -11,9 +11,13 @@
11
12
function rewrite_gu_response($response)
13
{
14
+ if (!is_array($response)) {
15
+ return $response;
16
+ }
17
+
18
$download_link = $response['download_link'] ?? null;
19
- if (!$download_link || !str_contains($download_link, 'fairpm/fair-plugin')) {
20
+ if (!$download_link || !is_string($download_link) || !str_contains($download_link, 'fairpm/fair-plugin')) {
21
return $response;
22
}
23
0 commit comments