mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-23 20:10:25 -04:00
+ allow rewriting of urls also with quotes
This commit is contained in:
parent
27a6e645ed
commit
3406052ac2
@ -292,9 +292,9 @@ static int accessHandlerCallback(void *cls,
|
|||||||
|
|
||||||
/* Special rewrite URL in case of ZIM file use intern *asbolute* url like /A/Kiwix */
|
/* Special rewrite URL in case of ZIM file use intern *asbolute* url like /A/Kiwix */
|
||||||
content = replaceRegex(content, "$1$2" + humanReadableBookId + "/$3/",
|
content = replaceRegex(content, "$1$2" + humanReadableBookId + "/$3/",
|
||||||
"(href|src)(=[\"|\']/)([A-Z|\\-])/");
|
"(href|src)(=[\"|\']{0,1}/)([A-Z|\\-])/");
|
||||||
content = replaceRegex(content, "$1$2" + humanReadableBookId + "/$3/",
|
content = replaceRegex(content, "$1$2" + humanReadableBookId + "/$3/",
|
||||||
"(@import[ ]+)([\"|\']/)([A-Z|\\-])/");
|
"(@import[ ]+)([\"|\']{0,1}/)([A-Z|\\-])/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user