ekiga r7252 - trunk/lib/engine/components/xcap



Author: jpuydt
Date: Thu Oct 16 19:56:49 2008
New Revision: 7252
URL: http://svn.gnome.org/viewvc/ekiga?rev=7252&view=rev

Log:
Doing hand-escaping of the URI in XCAP::Path -- it's not correct though

Modified:
   trunk/lib/engine/components/xcap/xcap-path.cpp

Modified: trunk/lib/engine/components/xcap/xcap-path.cpp
==============================================================================
--- trunk/lib/engine/components/xcap/xcap-path.cpp	(original)
+++ trunk/lib/engine/components/xcap/xcap-path.cpp	Thu Oct 16 19:56:49 2008
@@ -103,7 +103,7 @@
 {
   gmref_ptr<Path> result = new Path (root, application, user, relative,
 				     username, password);
-  result->relative = relative + "/" + name +"[" + attr + "=\"" + value + "\"]";
+  result->relative = relative + "/" + name +"%5b@" + attr + "=%22" + value + "%22%5d";
 
   return result;
 }
@@ -117,7 +117,7 @@
 				     username, password);
 
   /* notice: Snark hates C++ */
-  stream << name << "[" << position << "]";
+  stream << name << "%5b" << position << "%5d";
   result->relative = relative + "/" + stream.str ();
 
   return result;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]