projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42e6ad8
)
- Added host check, because file Url allows it now.
author
Marius Tomaschewski
<mt@suse.de>
Thu, 23 Mar 2006 10:09:01 +0000
(10:09 +0000)
committer
Marius Tomaschewski
<mt@suse.de>
Thu, 23 Mar 2006 10:09:01 +0000
(10:09 +0000)
zypp/media/MediaDIR.cc
patch
|
blob
|
history
diff --git
a/zypp/media/MediaDIR.cc
b/zypp/media/MediaDIR.cc
index
abbb189
..
e299663
100644
(file)
--- a/
zypp/media/MediaDIR.cc
+++ b/
zypp/media/MediaDIR.cc
@@
-45,6
+45,12
@@
namespace zypp {
false ) // does_download
{
MIL << "MediaDIR::MediaDIR(" << url_r << ")" << endl;
+ if( !url_r.getHost().empty())
+ {
+ ZYPP_THROW(MediaBadUrlException(url_r,
+ "Hostname not allowed in the Url"
+ ));
+ }
}
///////////////////////////////////////////////////////////////////