projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebbad80
)
fixed: AddSlashAtEnd for url style uri's with only a host
author
spiff
<spiff@xbmc.org>
Thu, 18 Aug 2011 09:14:53 +0000
(11:14 +0200)
committer
spiff
<spiff@xbmc.org>
Thu, 18 Aug 2011 09:15:41 +0000
(11:15 +0200)
xbmc/utils/URIUtils.cpp
patch
|
blob
|
history
diff --git
a/xbmc/utils/URIUtils.cpp
b/xbmc/utils/URIUtils.cpp
index
f812ddf
..
1a68273
100644
(file)
--- a/
xbmc/utils/URIUtils.cpp
+++ b/
xbmc/utils/URIUtils.cpp
@@
-759,6
+759,11
@@
void URIUtils::AddSlashAtEnd(CStdString& strFolder)
url.SetFileName(file);
strFolder = url.Get();
}
+ else if (file.IsEmpty())
+ {
+ url.SetHostName(url.GetHostName()+"/");
+ strFolder = url.Get();
+ }
return;
}