mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-24 01:49:15 -04:00
Fixed a regression introduced in block-external-links feature. For cleaner source, the taskbar (and the block-external JS file) were both attached to `<head>\n`. Unfortunately, this isn't safe enough as some ZIM files might have all kinds of HTML syntax. Sotoki for instance have no CR after head, rendering the attachment impossible. Note: realizing this method is somehow fragile as any HTML content with extra attribute on the `<head>` tag or without a `<head>` tag would break the taskbar and the block external feature.