Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

follow redirect for google search (#231)

Lanshun Zhoue05218e29962
diff --git a/endpoints/logos/search.php b/endpoints/logos/search.php
index f3105a5..4df345d 100644
--- a/endpoints/logos/search.php
+++ b/endpoints/logos/search.php
@@ -8,6 +8,7 @@
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
// Convert all environment variable keys to lowercase
$envVars = array_change_key_case($_SERVER, CASE_LOWER);
@@ -78,4 +79,4 @@
return $imageUrls;
}
-?>
\ No newline at end of file
+?>