From 456a3fc9410ecafe7182a1815a8c64fe0633fc4b Mon Sep 17 00:00:00 2001 From: Ivo Fokkema Date: Wed, 3 Jul 2024 21:51:25 +0200 Subject: [PATCH] Make sure we follow redirects. VV never used to redirect us, but now, it does. Reported it to VV, but also updated the code in case they keep it. See: https://github.com/openvar/variantValidator/issues/628 --- src/class/variant_validator.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/class/variant_validator.php b/src/class/variant_validator.php index 3df2654a..5837e333 100644 --- a/src/class/variant_validator.php +++ b/src/class/variant_validator.php @@ -4,8 +4,8 @@ * LEIDEN OPEN VARIATION DATABASE (LOVD) * * Created : 2020-03-09 - * Modified : 2024-01-25 - * For LOVD : 3.0-30 + * Modified : 2024-07-03 + * For LOVD : 3.0-31 * * Copyright : 2004-2024 Leiden University Medical Center; http://www.LUMC.nl/ * Programmer : Ivo F.A.C. Fokkema @@ -199,6 +199,7 @@ private function callVV ($sMethod, $aArgs = array()) if (!$hCurl) { $hCurl = curl_init(); curl_setopt($hCurl, CURLOPT_RETURNTRANSFER, true); // Return the result as a string. + curl_setopt($hCurl, CURLOPT_FOLLOWLOCATION, true); // Make sure we follow redirects. if (!empty($_SETT['system']['version'])) { curl_setopt($hCurl, CURLOPT_USERAGENT, 'LOVDv.' . $_SETT['system']['version']); // Return the result as a string. }