From e78b061cfd01caee387b63c6af2bc5f1f9cb9585 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 8 Jan 2003 17:24:11 +0000 Subject: [w3m-dev 03616] Re: data: URL scheme * file.c (loadGeneralFile): check SCM_DATA (loadImageBuffer): newBuffer() * html.h (SCM_DATA): added * indep.c (url_unquote): deleted (Str_url_unquote): renamed from Str_form_unquote + is decoded is_form only * indep.h (url_unquote): deleted (Str_url_unquote): added (Str_form_unquote): define by Str_url_unquote * main.c (followA): file_unquote (cmd_loadURL): file_unquote * url.c (DefaultPort): add for data: (schemetable): add "data" (DefaultFile): SCM_FTPDIR (parseURL): scheme copied from current (parseURL2): SCM_DATA check SCM_FTP, SCM_FTPDIR (_parsedURL2Str): add data in scheme_str handle SCM_DATA SCM_FTPDIR (openURL): file_unquote handle SCM_DATA From: Hironori SAKAMOTO --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 486e360..86e46db 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.184 2003/01/06 15:36:59 ukai Exp $ */ +/* $Id: main.c,v 1.185 2003/01/08 17:24:13 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -2864,7 +2864,7 @@ followA(void) Strtruncate(to, pos - to->ptr); #endif fmTerm(); - system(myExtCommand(Mailer, shell_quote(url_unquote(to->ptr)), + system(myExtCommand(Mailer, shell_quote(file_unquote(to->ptr)), FALSE)->ptr); fmInit(); displayBuffer(Currentbuf, B_FORCE_REDRAW); @@ -3819,7 +3819,7 @@ cmd_loadURL(char *url, ParsedURL *current, char *referer) Strtruncate(to, pos - to->ptr); #endif fmTerm(); - system(myExtCommand(Mailer, shell_quote(url_unquote(to->ptr)), + system(myExtCommand(Mailer, shell_quote(file_unquote(to->ptr)), FALSE)->ptr); fmInit(); displayBuffer(Currentbuf, B_FORCE_REDRAW); -- cgit v1.2.3