Commit b603e30f authored by Duhoux Pierre-Louis's avatar Duhoux Pierre-Louis

Fix #44 : MangaHere changed some parameters passed to security keeper (and...

Fix #44 : MangaHere changed some parameters passed to security keeper (and return 401 if parameters are present)
parent 8490cd40
Pipeline #44169421 passed with stages
in 2 minutes and 8 seconds
......@@ -99,11 +99,9 @@ if (typeof registerMangaObject === 'function') {
sc = sc.replace(/\\'/g, "'") // unquote the result
// the result is another js function containing the data, we mimic here what it does
// retrieve the variables
let cid = amr.getVariableFromScript("cid", sc),
key = amr.getVariableFromScript("key", sc),
pix = amr.getVariableFromScript("pix", sc),
let pix = amr.getVariableFromScript("pix", sc),
pvalue = amr.getVariableFromScript("pvalue", sc) // array of scan urls (contains current one and next one)
pvalue = pvalue.map(img => pix + img + '?cid=' + cid + '&key=' + key) // mimic the returned function which rebuilds the url depending on its parts
pvalue = pvalue.map(img => pix + img) // mimic the returned function which rebuilds the url depending on its parts
$(image).attr("src", pvalue[0]); // set the image src
} else {
$(image).attr("src", "error");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment