scarhand Posted March 24, 2009 Share Posted March 24, 2009 i have a string - LÙH²räâG3Âd\0(anBì this is supposed to be coming from a $_GET variable, called $_GET['info_hash'] however, I believe the null byte "\0" in this string is causing php to read the variable as empty, as using the empty function tells me it is empty even though it is not. what is the workaround for this? Link to comment https://forums.phpfreaks.com/topic/150958-null-byte-in-string-causing-_get-to-be-empty/ Share on other sites More sharing options...
Yesideez Posted March 24, 2009 Share Posted March 24, 2009 I think the non-ASCII characters in it are causing it. Link to comment https://forums.phpfreaks.com/topic/150958-null-byte-in-string-causing-_get-to-be-empty/#findComment-793080 Share on other sites More sharing options...
scarhand Posted March 24, 2009 Author Share Posted March 24, 2009 the funny thing is, it works for other raw sha1's such as ""!•g€Luµí¦S÷¸FF" and "¤h¦Š@ Ή´ùmÍëØØv¹" so obviously it is the null byte causing the issue. how do i make it work? Link to comment https://forums.phpfreaks.com/topic/150958-null-byte-in-string-causing-_get-to-be-empty/#findComment-793108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.