mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 03:12:20 -04:00
URLEncode random urls
This commit is contained in:
parent
f95994898b
commit
0bbe48d13a
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user