libkiwix/test
Veloman Yunkan f3d2f474a7 Handling of suggestions containing special symbols
This change fixes two issues:

1. Presence of URL-specific special symbols (such as ? or #) in the book
   and/or article name resulted in a wrong suggestion link. This is
   fixed by URI-encoding the book name and the path, too.

2. Presence of a single quote symbol in the book and/or article name
   resulted in invalid javascript code in the href attribute of the
   suggestion link.

   The single quote (') symbol is not URL-encoded (unlike its double quote
   counterpart). As a result, enclosing a URL-encoded string in single
   quotes may result in invalid javascript. Using double quotes instead is
   safe, since both double quote (") and backslash (\) symbols (which are
   the only special symbols for such quoting) undergo URL-encoding.
2022-12-17 18:39:17 +04:00
..
data Preventing confusion of tongues in multizim search 2022-10-31 13:27:57 +04:00
book.cpp Deprecate methods on Book. 2022-01-12 18:07:46 +01:00
httplib.h Fix warning in httplib. 2021-11-16 09:39:56 +01:00
kiwixserve.cpp Fix tests. 2020-01-20 17:00:18 +01:00
library.cpp Library::removeBookById() updates the revision 2022-10-19 19:26:04 +04:00
library_server.cpp Beautification (better alignment) 2022-11-01 19:16:30 +01:00
lrucache.cpp uint is not defined on Windows 2022-06-10 11:21:35 +02:00
manager.cpp Manager::reload() 2021-11-30 18:20:27 +04:00
meson.build Unit-testing of kiwix::Suggestions 2022-11-17 11:51:53 +04:00
name_mapper.cpp Dropped Library::getBookBy*() non-const functions 2021-11-30 18:20:27 +04:00
opds_catalog.cpp OpdsCatalog::getSearchUrl() 2021-06-30 18:27:00 +02:00
otherTools.cpp Properly implemented parseUserLanguagePreferences() 2022-12-14 15:34:46 +01:00
pathTools.cpp Do not include posix header on Windows 2022-01-19 16:15:59 +01:00
regex.cpp Got rid of unused *pendToFirstOccurence() funcs 2022-09-21 15:52:26 +04:00
server.cpp Handling of suggestions containing special symbols 2022-12-17 18:39:17 +04:00
server_helper.cpp Introduce a pagination object to render search result. 2022-05-23 19:12:17 +02:00
server_search.cpp ServerSearchTest.searchInMultilanguageBookSetIsDenied 2022-10-31 13:30:11 +04:00
server_testing_tools.h Make the opds_dumper respect the provided nameMapper used in the server. 2022-10-30 19:21:01 +01:00
stringTools.cpp New unit-test stringTools.ICULanguageInfo 2022-07-07 16:13:49 +04:00
tagParsing.cpp Fix tests. 2020-01-20 17:00:18 +01:00