]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Fix: ensure Internet Explorer bookmark dumps can be imported 635/head
authorVirtualTam <virtualtam@flibidi.net>
Fri, 12 Aug 2016 21:22:15 +0000 (23:22 +0200)
committerVirtualTam <virtualtam@flibidi.net>
Fri, 12 Aug 2016 21:22:15 +0000 (23:22 +0200)
commitf4ad7bde56b769cea0a2a26eb739e57500705555
tree66bf1b75a3bfd4f1862cd06e0a4c1d162e365ca9
parenta34d6da642acda37b04e4c5d732d42a84df65068
Fix: ensure Internet Explorer bookmark dumps can be imported

Relates to https://github.com/shaarli/Shaarli/issues/607

Modifications:
- [application][tests] NetscapeBookmarkUtils: more permissive doctype detection

The IE bookmark exports contain extra escape sequences, which can be observed
by binary comparison of the reference input data used in tests:

   $ cmp -b -l -n 8 netscape_basic.htm internet_explorer_encoding.htm

   1  74 <    357 M-o
   2  41 !    273 M-;
   3 104 D    277 M-?
   4 117 O     74 <
   5 103 C     41 !
   6 124 T    104 D
   7 131 Y    117 O
   8 120 P    103 C

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
application/NetscapeBookmarkUtils.php
tests/NetscapeBookmarkUtils/BookmarkImportTest.php
tests/NetscapeBookmarkUtils/input/internet_explorer_encoding.htm [new file with mode: 0644]