File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1+ github : joomla
2+ custom : https://community.joomla.org/sponsorship-campaigns.html
Original file line number Diff line number Diff line change 22/**
33 * Part of the Joomla Framework Utilities Package
44 *
5- * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
6- * @license GNU General Public License version 2 or later; see LICENSE
5+ * @copyright Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
6+ * @license GNU General Public License version 2 or later; see LICENSE.txt
7+ * @note This file has been modified by the Joomla! Project and no longer reflects the original work of its author.
78 */
89
910namespace Joomla \Utilities ;
1011
1112/**
1213 * IpHelper is a utility class for processing IP addresses
1314 *
14- * This class is adapted from the `FOFUtilsIp` class distributed with the Joomla! CMS as part of the FOF library by Akeeba Ltd.
15- * The original class is copyright of Nicholas K. Dionysopoulos / Akeeba Ltd.
16- *
1715 * @since 1.6.0
1816 */
1917final class IpHelper
@@ -31,6 +29,7 @@ final class IpHelper
3129 *
3230 * @var boolean
3331 * @since 1.6.0
32+ * @note The default value is false in version 2.0+
3433 */
3534 private static $ allowIpOverrides = false ;
3635
@@ -448,7 +447,7 @@ protected static function detectAndCleanIP()
448447
449448 while (empty ($ ip ) && !empty ($ ips ))
450449 {
451- $ ip = array_pop ($ ips );
450+ $ ip = array_shift ($ ips );
452451 $ ip = trim ($ ip );
453452 }
454453 }
You can’t perform that action at this time.
0 commit comments