URLEncode random urls

This commit is contained in:
kelson42 2015-04-03 19:36:48 +02:00
parent f95994898b
commit 0bbe48d13a

View File

@ -307,7 +307,7 @@ static int accessHandlerCallback(void *cls,
pthread_mutex_lock(&readerLock);
std::string randomUrl = reader->getRandomPageUrl();
pthread_mutex_unlock(&readerLock);
httpRedirection = "/" + humanReadableBookId + "/" + randomUrl;
httpRedirection = "/" + humanReadableBookId + "/" + kiwix::urlEncode(randomUrl);
}
}