Browse Source

URL: fixed an issue where an invalid File could lead to infinite loop in the URL constructor

tags/2021-05-28
hogliux 8 years ago
parent
commit
d8c06ab657
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_core/network/juce_URL.cpp

+ 3
- 0
modules/juce_core/network/juce_URL.cpp View File

@@ -145,6 +145,9 @@ URL::URL (const String& u) : url (u)
URL::URL (File localFile)
{
if (localFile == File())
return;
while (! localFile.isRoot())
{
url = "/" + addEscapeChars (localFile.getFileName(), false) + url;


Loading…
Cancel
Save