mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-24 16:34:24 +01:00
Ensure a '/' in between the host, and the url in WebServerRequest::get_url_site().
This commit is contained in:
parent
ea009ff869
commit
df6186524a
@ -418,6 +418,10 @@ String WebServerRequest::get_url_root_current() const {
|
|||||||
String WebServerRequest::get_url_site() const {
|
String WebServerRequest::get_url_site() const {
|
||||||
String path = get_host();
|
String path = get_host();
|
||||||
|
|
||||||
|
if (path.length() == 0 || path[path.length() - 1] != '/') {
|
||||||
|
path += '/';
|
||||||
|
}
|
||||||
|
|
||||||
int s = MIN(_path_stack_pointer + 1, _path_stack.size());
|
int s = MIN(_path_stack_pointer + 1, _path_stack.size());
|
||||||
|
|
||||||
for (int i = 0; i < s; ++i) {
|
for (int i = 0; i < s; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user