diff --git a/libraries/fof/dispatcher/dispatcher.php b/libraries/fof/dispatcher/dispatcher.php index e253b15db7ac9..e1aa31d92d0cd 100644 --- a/libraries/fof/dispatcher/dispatcher.php +++ b/libraries/fof/dispatcher/dispatcher.php @@ -4,6 +4,8 @@ * @subpackage dispatcher * @copyright Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt + * + * @note This file has been modified by the Joomla! Project in early 2019, replacing `continue` with `continue 2`, to ensure PHP 7.3+ compatibility. */ // Protect from unauthorized access defined('FOF_INCLUDED') or die; @@ -521,22 +523,22 @@ public function transparentAuthentication() if (empty($this->fofAuth_Key)) { - continue; + continue 2; } if (!isset($_SERVER['PHP_AUTH_USER'])) { - continue; + continue 2; } if (!isset($_SERVER['PHP_AUTH_PW'])) { - continue; + continue 2; } if ($_SERVER['PHP_AUTH_USER'] != '_fof_auth') { - continue; + continue 2; } $encryptedData = $_SERVER['PHP_AUTH_PW']; @@ -549,7 +551,7 @@ public function transparentAuthentication() if (empty($encryptedData)) { - continue; + continue 2; } $authInfo = $this->_decryptWithTOTP($encryptedData); @@ -558,12 +560,12 @@ public function transparentAuthentication() case 'HTTPBasicAuth_Plaintext': if (!isset($_SERVER['PHP_AUTH_USER'])) { - continue; + continue 2; } if (!isset($_SERVER['PHP_AUTH_PW'])) { - continue; + continue 2; } $authInfo = array( @@ -577,7 +579,7 @@ public function transparentAuthentication() if (empty($jsonencoded)) { - continue; + continue 2; } $authInfo = json_decode($jsonencoded, true); @@ -606,7 +608,7 @@ public function transparentAuthentication() break; default: - continue; + continue 2; break; }