[libsoup] soup-uri: fix the scheme parsing to require alpha, not alphanumeric



commit 6fd3387c84e2440ae7fd375b6d1d464a02ddd8d5
Author: Dan Winship <danw gnome org>
Date:   Thu Feb 9 17:00:52 2012 -0500

    soup-uri: fix the scheme parsing to require alpha, not alphanumeric
    
    also remove an ancient comment about running the regression tests,
    since it's implied everywhere now.

 libsoup/soup-uri.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index d2d752a..7fbea77 100644
--- a/libsoup/soup-uri.c
+++ b/libsoup/soup-uri.c
@@ -204,7 +204,7 @@ soup_uri_new_with_base (SoupURI *base, const char *uri_string)
 
 	/* Find scheme: initial [a-z+.-]* substring until ":" */
 	p = uri_string;
-	while (p < end && (g_ascii_isalnum (*p) ||
+	while (p < end && (g_ascii_isalpha (*p) ||
 			   *p == '.' || *p == '+' || *p == '-'))
 		p++;
 
@@ -449,10 +449,6 @@ soup_uri_to_string (SoupURI *uri, gboolean just_path_and_query)
 
 	g_return_val_if_fail (SOUP_URI_IS_VALID (uri), NULL);
 
-	/* IF YOU CHANGE ANYTHING IN THIS FUNCTION, RUN
-	 * tests/uri-parsing AFTERWARD.
-	 */
-
 	str = g_string_sized_new (20);
 
 	if (uri->scheme && !just_path_and_query)



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