mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 03:52:21 -04:00
Bugfix for decoding escaped offsets.
This commit is contained in:
parent
4374dd3799
commit
bad3e760e0
@ -75,7 +75,7 @@ define(function(require) {
|
||||
var escapedEncodedTitle = new Uint8Array(encodedTitle);
|
||||
var escapes = util.readIntegerFrom2Bytes(encodedTitle, 0);
|
||||
if ((escapes & (1 << 14)) != 0)
|
||||
escapes |= '\n';
|
||||
escapes |= 10;
|
||||
for (var i = 0; i < 13; i++) {
|
||||
if ((escapes & (1 << i)) != 0)
|
||||
escapedEncodedTitle[i + 2] = 10; // Corresponds to \n
|
||||
|
Loading…
x
Reference in New Issue
Block a user