diff src/vorbis/fileinfo.c @ 628:8e1c653cd605 trunk

[svn] - patch from Mark Glines to polish up https:// support.
author nenolod
date Sat, 10 Feb 2007 12:36:14 -0800
parents 324a6d834f32
children 6a656a7f40fa
line wrap: on
line diff
--- a/src/vorbis/fileinfo.c	Sat Feb 10 12:06:11 2007 -0800
+++ b/src/vorbis/fileinfo.c	Sat Feb 10 12:36:14 2007 -0800
@@ -234,6 +234,8 @@
 
     if (!g_strncasecmp(vte.filename, "http://", 7))
         return;
+    if (!g_strncasecmp(vte.filename, "https://", 8))
+        return;
 
     state = vcedit_new_state();
 
@@ -312,6 +314,8 @@
 
     if (!g_strncasecmp(vte.filename, "http://", 7))
         return;
+    if (!g_strncasecmp(vte.filename, "https://", 8))
+        return;
 
     state = vcedit_new_state();
 
@@ -905,7 +909,8 @@
     else
         gtk_window_present(GTK_WINDOW(window));
 
-    if (!g_strncasecmp(vte.filename, "http://", 7))
+    if (!g_strncasecmp(vte.filename, "http://", 7)
+        || !g_strncasecmp(vte.filename, "https://", 8))
         gtk_widget_set_sensitive(tag_frame, FALSE);
     else
         gtk_widget_set_sensitive(tag_frame, TRUE);