2008-05-13 Bastien Nocera <hadess@hadess.net>
* gfile.c (has_valid_scheme): A URI scheme must start with a
letter, even if later more characters are allowed (#532852)
svn path=/trunk/; revision=6887
+2008-05-13 Bastien Nocera <hadess@hadess.net>
+
+ * gfile.c (has_valid_scheme): A URI scheme must start with a
+ letter, even if later more characters are allowed (#532852)
+
2008-05-05 Michael Natterer <mitch@imendio.com>
* Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent
return g_ascii_isalnum (c) || c == '+' || c == '-' || c == '.';
}
+/* Following RFC 2396, valid schemes are built like:
+ * scheme = alpha *( alpha | digit | "+" | "-" | "." )
+ */
static gboolean
has_valid_scheme (const char *uri)
{
p = uri;
- if (!is_valid_scheme_character (*p))
+ if (!g_ascii_isalpha (*p))
return FALSE;
do {