1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-10-02 15:00:02 +00:00

Decompose the base_uri option.

This allows support for having tawashi in a subdirectory
of your domain, eg http://example.com/tawashi
This commit is contained in:
King_DuckZ 2017-05-19 10:01:22 +01:00
commit 34daf8e411
9 changed files with 58 additions and 20 deletions

View file

@ -49,10 +49,11 @@ TEST_CASE ("Retrieve and sanitize invalid an invalid utf-8 text", "[utf8][securi
const char* const fake_env[] = {
content_length.c_str(),
"PATH_INFO=/",
nullptr
};
tawashi::cgi::Env env(fake_env);
tawashi::cgi::Env env(fake_env, "/");
const PostMapType& post_data = read_post(iss, env);
CHECK(g_utf8_validate(post_data.at("invalid_text").data(), post_data.at("invalid_text").size(), nullptr));