Closed (fixed)
Project:
Access Content Type by IP
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2009 at 13:13 UTC
Updated:
6 Nov 2010 at 19:30 UTC
I don't think all systems are going to return forms where the newline delimiter is \r\n when you split the hostnames. You might be better off using preg_split so you can also account for instances where a user submits just \n or just \r. It's a common example in php.net/str_replace. If you don't want to invoke the preg library, you could even str_replace before doing a regular explode.
Comments
Comment #1
desecho commented