mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 10:16:03 -04:00
Fixed #1157: magnetLink queryString to start with ? and not ?&
This commit is contained in:
parent
84ebee899c
commit
77f4fd7447
@ -238,7 +238,8 @@
|
|||||||
let finalValue = (keysToURIEncode.indexOf(key) >= 0) ? encodeURIComponent(value) : value;
|
let finalValue = (keysToURIEncode.indexOf(key) >= 0) ? encodeURIComponent(value) : value;
|
||||||
output += `&${key}=${finalValue}`;
|
output += `&${key}=${finalValue}`;
|
||||||
}
|
}
|
||||||
return output;
|
// exclude first char so the first params are not prefixed with &
|
||||||
|
return output.substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* hack for library.kiwix.org magnet links (created by MirrorBrain)
|
/* hack for library.kiwix.org magnet links (created by MirrorBrain)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user