-
+/*
+ * 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 *
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, '%');