Merge pull request #704 from jgagnon/master
[mono.git] / mono / utils / mono-uri.c
index 23350b5682a9d420419c03affa3fa4d4bce6c720..7a2c4ac8100ebd9afec9607a8b7b0640c498f3a5 100644 (file)
@@ -1,4 +1,12 @@
-
+/*
+ * mono-uri.c: Simple routine used to escape uris.
+ *
+ * Author:
+ *   Miguel de Icaza (miguel@novell.com)
+ *
+ * (C) 2006 Ximian, Inc.
+ *
+ */
 #include "mono-uri.h"
 
 gchar *
@@ -11,7 +19,7 @@ mono_escape_uri_string (const gchar *string)
        while ((c = (guchar) *string) != 0){
                if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '-' && c <= ':') || (c >= '&' && c <= '*'))
                        g_string_append_c (str, c);
-               else if (c == '!' || c == '=' || c == '?' || c == '?' || c == '_' || c == '_' || c == '~')
+               else if (c == '!' || c == '=' || c == '?' || c == '_' || c == '~')
                        g_string_append_c (str, c);
                else {
                        g_string_append_c (str, '%');