projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41bb5e4
)
- encode user-supplied URL strings before using them in the Url object
author
Jan Kupec
<jkupec@suse.cz>
Wed, 19 Nov 2008 14:57:23 +0000
(14:57 +0000)
committer
Jan Kupec
<jkupec@suse.cz>
Wed, 19 Nov 2008 14:57:23 +0000
(14:57 +0000)
(bnc #446395, bnc #444267)
src/utils/misc.cc
patch
|
blob
|
history
diff --git
a/src/utils/misc.cc
b/src/utils/misc.cc
index
bee8e62
..
04ab29f
100644
(file)
--- a/
src/utils/misc.cc
+++ b/
src/utils/misc.cc
@@
-159,7
+159,7
@@
bool looks_like_url (const string& s)
Url make_url (const string & url_s)
{
Url u;
- string urlstr(
url_s
);
+ string urlstr(
zypp::url::encode(url_s, URL_SAFE_CHARS)
);
if (!url_s.empty() && !looks_like_url(url_s))
{