|
7 | 7 | * |
8 | 8 | * This content is released under the MIT License (MIT) |
9 | 9 | * |
10 | | - * Copyright (c) 2014 - 2019, British Columbia Institute of Technology |
| 10 | + * Copyright (c) 2019 - 2022, CodeIgniter Foundation |
| 11 | + * Copyright (c) 2020 - present, WebbyPHP Framework |
11 | 12 | * |
12 | 13 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
13 | 14 | * of this software and associated documentation files (the "Software"), to deal |
|
31 | 32 | * @author EllisLab Dev Team |
32 | 33 | * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/) |
33 | 34 | * @copyright Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/) |
| 35 | + * @copyright Copyright (c) 2019 - 2022, CodeIgniter Foundation (https://codeigniter.com/) |
| 36 | + * @copyright Copyright (c) 2020 - present, WebbyPHP Framework (https://webbyphp.top) |
34 | 37 | * @license https://opensource.org/licenses/MIT MIT License |
35 | 38 | * @link https://codeigniter.com |
36 | 39 | * @since Version 1.0.0 |
| 40 | + * @since WebbyPHP Version 3.0.0 |
37 | 41 | * @filesource |
38 | 42 | */ |
39 | | - |
40 | 43 | /** |
41 | 44 | * Input Class |
42 | 45 | * |
@@ -955,7 +958,7 @@ public function ip_address() |
955 | 958 | } |
956 | 959 |
|
957 | 960 | // Convert to binary and finally compare |
958 | | - if (strncmp($ip, vsprintf($sprintf, $netaddr), $masklen) === 0) { |
| 961 | + if (strncmp($ip, vsprintf($sprintf, $netaddr), (int)$masklen) === 0) { |
959 | 962 | $this->ip_address = $spoof; |
960 | 963 | break; |
961 | 964 | } |
|
0 commit comments