Skip to content
Snippets Groups Projects
Commit 250e7e2b authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Use getValue for proxy.auth to cope with legacy configs.

The configuration template had 'proxy.auth = false' listed for
years. Prevent installs from breaking on this on upgrade.
parent 9b67b0a7
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ if ($config->getBoolean('admin.checkforupdates', true) && $current !== 'master')
curl_setopt($ch, CURLOPT_USERAGENT, 'SimpleSAMLphp');
curl_setopt($ch, CURLOPT_TIMEOUT, 2);
curl_setopt($ch, CURLOPT_PROXY, $config->getString('proxy', null));
curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config->getstring('proxy.auth', null));
curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config->getValue('proxy.auth', null));
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment