diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2015-05-26 11:29:21 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2015-05-26 11:29:21 -0300 |
commit | c7aefa2cd7ef9bae68773df9f338da4b44a76d73 (patch) | |
tree | 460cd0d429069705e07af8c3b403ede439e669e2 /dpid/dpid.c | |
parent | 02a3ee925afe16af350979f679df869164dd39c2 (diff) |
Fix view-source dpi to handle null characters correctly
Although not allowed in text contexts, null characters should not
stop/halt/fail dpi protocol, thus the patch.
Test Example. Display a file with these contents:
null padding^@^@
(two trailing null characters)
and view source for it.
Note that dillo will not _display_ the file completely correct,
it will eat a char after each null, but this is not a problem in
dpi nor dpip but in rendering, the cache gets it right.
Adding code to correctly _display_ these anomalous pages is probably
not worth the effort though.
Diffstat (limited to 'dpid/dpid.c')
0 files changed, 0 insertions, 0 deletions