- compile&changes
authorJan Kupec <jkupec@suse.cz>
Fri, 29 Feb 2008 15:57:15 +0000 (15:57 +0000)
committerJan Kupec <jkupec@suse.cz>
Fri, 29 Feb 2008 15:57:15 +0000 (15:57 +0000)
package/zypper.changes
src/zypper-misc.cc

index 457e007..c63047a 100644 (file)
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Fri Feb 29 16:44:18 CET 2008 - jkupec@suse.cz
+
+- xml encode the repo url and alias in update xml (bnc #337424,
+  bnc #342701)
+
+-------------------------------------------------------------------
 Thu Feb 28 19:40:23 CET 2008 - jkupec@suse.cz
 
 - fixed solver solution detail text indentation (bnc #358871)
index 6c4c4a8..358f223 100644 (file)
@@ -1180,7 +1180,7 @@ bool xml_list_patches ()
 
         if ( !patch->repoInfo().alias().empty() )
         {
-          cout << "  <source url=\"" << xml_encode(*(patch->repoInfo().baseUrlsBegin()));
+          cout << "  <source url=\"" << xml_encode(patch->repoInfo().baseUrlsBegin()->asString());
           cout << "\" alias=\"" << xml_encode(patch->repoInfo().alias()) << "\"/>" << endl;
         }
 
@@ -1553,7 +1553,7 @@ void xml_list_updates(const ResKindSet & kinds)
 
     if ( !res->repoInfo().alias().empty() )
     {
-       cout << "  <source url=\"" << xml_encode(*(res->repoInfo().baseUrlsBegin()));
+       cout << "  <source url=\"" << xml_encode(res->repoInfo().baseUrlsBegin()->asString());
        cout << "\" alias=\"" << xml_encode(res->repoInfo().alias()) << "\"/>" << endl;
     }