commit | ff5d13b710007d7a0648542070a4e10a3a8a284d | [log] [tgz] |
---|---|---|
author | Derek Jones <derek.jones@ellislab.com> | Fri Oct 17 14:18:45 2008 +0000 |
committer | Derek Jones <derek.jones@ellislab.com> | Fri Oct 17 14:18:45 2008 +0000 |
tree | e374df0d3f46ee04c22c684109457b8b8c7707bc | |
parent | dc50e1168020211a4dfd392334a83df74dd3a5d0 [diff] [blame] |
syntax simplification for testing first character of string if (substr($ip_segments[0], 0, 1) == '0') to if ($ip_segments[0][0] == '0')
diff --git a/system/libraries/Input.php b/system/libraries/Input.php index fae188e..e66d481 100644 --- a/system/libraries/Input.php +++ b/system/libraries/Input.php
@@ -404,7 +404,7 @@ return FALSE; } // IP can not start with 0 - if (substr($ip_segments[0], 0, 1) == '0') + if ($ip_segments[0][0] == '0') { return FALSE; }