MDL-62316 OAuth 2: Only guess image if base URL set.
authorLeon Stringer <leon@priorsvle.com>
Tue, 22 May 2018 16:43:05 +0000 (17:43 +0100)
committerLeon Stringer <leon@priorsvle.com>
Tue, 22 May 2018 16:43:05 +0000 (17:43 +0100)
commit02cc1ecd771f5e53831bb9a9eb01caa01eb6a600
tree6ace93926d7d728b73154217f522d990706bf4d3
parent22744b745bb456f525e8ef09e1fb719a69fc2570
MDL-62316 OAuth 2: Only guess image if base URL set.

If you added an OAuth 2 service with no base URL guess_image() would try to
parse this empty value looking for a favicon.ico.  We now check if the base
URL is empty beforehand and skip this if so.
lib/classes/oauth2/api.php