Ensure a '/' in between the host, and the url in WebServerRequest::get_url_site().

This commit is contained in:
Relintai 2022-12-21 15:12:53 +01:00
parent ea009ff869
commit df6186524a

View File

@ -418,6 +418,10 @@ String WebServerRequest::get_url_root_current() const {
String WebServerRequest::get_url_site() const {
String path = get_host();
if (path.length() == 0 || path[path.length() - 1] != '/') {
path += '/';
}
int s = MIN(_path_stack_pointer + 1, _path_stack.size());
for (int i = 0; i < s; ++i) {