Veloman Yunkan
2535f210b3
Renamed src/server/{i18n -> i18n_utils}.h
...
... so that i18n.h can be introduced in include/
2024-08-14 12:44:20 +04:00
Veloman Yunkan
75bddbf725
"Unittests" for getBestPublicIp() & getNetworkInterfaces()
...
The unit-tests only call the said functions and print their output
which should then be examined by the maintainer.
2024-06-11 11:19:49 +02:00
Veloman Yunkan
8b8a2eede7
Slight enhancement of escapeForJSON()
...
- More familiar escape sequences for tab, newline and carriage return
symbols.
- Quote symbol is escaped by default too, however that behaviour can
be disabled for uses in HTML-related contexts where quotes should then
be replaced with the character entity "
2024-01-10 00:26:13 +04:00
Veloman Yunkan
571c09e00a
Control characters are escaped in suggestions JSON
...
According to the JSON spec, control characters from U+0000 through U+001F
must NOT appear in strings unescaped.
2023-11-17 14:55:01 +01:00
Veloman Yunkan
28e9fb48b6
Properly implemented parseUserLanguagePreferences()
2022-12-14 15:34:46 +01:00
Veloman Yunkan
7743e73ede
All non-alphanumeric symbols deserve a test
2022-11-17 11:51:53 +04:00
Veloman Yunkan
c727de6591
Unit-testing of kiwix::Suggestions
...
The new unit test fails because of a buggy mishandling of backslashes
in suggestions. The fix is coming next.
2022-11-17 11:51:53 +04:00