mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
empty strings don't have server names
This commit is contained in:
parent
d19ee8dba4
commit
eaf400490d
@ -374,6 +374,11 @@ set_url(const string &url, bool server_name_expected) {
|
|||||||
_url = url;
|
_url = url;
|
||||||
_flags = 0;
|
_flags = 0;
|
||||||
|
|
||||||
|
if (url.empty()) {
|
||||||
|
// No server name on an empty string.
|
||||||
|
server_name_expected = false;
|
||||||
|
}
|
||||||
|
|
||||||
// First, replace backslashes with forward slashes, since this is a
|
// First, replace backslashes with forward slashes, since this is a
|
||||||
// common mistake among Windows users.
|
// common mistake among Windows users.
|
||||||
size_t p;
|
size_t p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user