This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
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
f802c6950b
commit
d8c06ab657
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save