Menu

#34 null character problem in ownet php

open
owlib (16)
5
2012-09-14
2009-11-15
themole
No

Using Version OWNet 2.7p27

If path to a ressource contains a null character, which seems to happen sometimes when concatenating strings, the parsing in ownet stops. PHP does not stop on \0 and simply ignores it, but

e.g. ow->dir("/20.41B806000000\0/alarm") only gives the directory of "/20.41B806000000"

Debugging is quite ugly, since php prints still without the \0 character and a characterwise examinations show \0 in the middle of strings.

Discussion