ioseb/uri-template

Null character `\0` terminates strings

Opened this issue · 1 comments

When using this extension, I ran into the issue that passing a null character \0 will terminate a string before the end of a string is encountered.

php > var_export(uri_template("foo\0bar", []));
'foo'
var_export(uri_template("\0bar", []));
''
// Other characters work correctly
var_export(uri_template("\nbar", []));
'%0Abar'

@mtdowling i believe i responded to this issue but i do not see my comment... anyway, i'll look at it ASAP. thanks for letting me know!