Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11722 - /trunk/zypper/src/utils/misc.cc
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Wed, 19 Nov 2008 14:57:23 -0000
  • Message-id: <20081119145723.F1189B7217@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Wed Nov 19 15:57:23 2008
New Revision: 11722

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11722&view=rev
Log:
- encode user-supplied URL strings before using them in the Url object
(bnc #446395, bnc #444267)

Modified:
trunk/zypper/src/utils/misc.cc

Modified: trunk/zypper/src/utils/misc.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/utils/misc.cc?rev=11722&r1=11721&r2=11722&view=diff
==============================================================================
--- trunk/zypper/src/utils/misc.cc (original)
+++ trunk/zypper/src/utils/misc.cc Wed Nov 19 15:57:23 2008
@@ -159,7 +159,7 @@
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))
{

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages