glib r6887 - trunk/gio
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6887 - trunk/gio
- Date: Tue, 13 May 2008 13:42:40 +0100 (BST)
Author: hadess
Date: Tue May 13 12:42:40 2008
New Revision: 6887
URL: http://svn.gnome.org/viewvc/glib?rev=6887&view=rev
Log:
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)
Modified:
trunk/gio/ChangeLog
trunk/gio/gfile.c
Modified: trunk/gio/gfile.c
==============================================================================
--- trunk/gio/gfile.c (original)
+++ trunk/gio/gfile.c Tue May 13 12:42:40 2008
@@ -4714,6 +4714,9 @@
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)
{
@@ -4721,7 +4724,7 @@
p = uri;
- if (!is_valid_scheme_character (*p))
+ if (!g_ascii_isalpha (*p))
return FALSE;
do {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]