changeset 15460:fa8c3f5b7ec2

introduced -string- parameter to match everything after :// syntax
author nicodvb
date Sat, 14 May 2005 12:49:18 +0000
parents ae92bce4e6aa
children 7c272bfba96f
files m_option.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/m_option.c	Sat May 14 12:44:30 2005 +0000
+++ b/m_option.c	Sat May 14 12:49:18 2005 +0000
@@ -1743,6 +1743,12 @@
     mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Option %s: URL doesn't have a valid protocol!\n",name);
     return M_OPT_INVALID;
   }
+  if(m_option_list_find(desc->fields,"string")) {
+    if(strlen(ptr1)>3) {
+      m_struct_set(desc,dst,"string",ptr1+3);
+      return 1;
+    }
+  }
   pos1 = ptr1-url;
   if(dst && m_option_list_find(desc->fields,"protocol")) {
     ptr1[0] = '\0';