diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-02-09 22:44:52 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-02-09 22:44:52 -0500 |
commit | 6f66219647d92d2af2427d416e00e6f2a8f825dc (patch) | |
tree | 0560172642638a687023c25b3f0b3739df2bb8e5 /src/LYUtils.c | |
parent | 9c63ba04a5785f8ad069bf660402530617451a06 (diff) | |
download | lynx-snapshots-6f66219647d92d2af2427d416e00e6f2a8f825dc.tar.gz |
snapshot of project "lynx", label v2_6fm_970209
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r-- | src/LYUtils.c | 74 |
1 files changed, 47 insertions, 27 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c index c479d440..debb5c33 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -843,6 +843,46 @@ PUBLIC int is_url ARGS1( } return(SNEWS_URL_TYPE); + } else if (!strncasecomp(cp, "newspost:", 9)) { + /* + * Special Lynx type to handle news posts. + */ + if (strncmp(cp, "newspost", 8)) { + for (i = 0; i < 8; i++) + cp[i] = TOLOWER(cp[i]); + } + return(NEWSPOST_URL_TYPE); + + } else if (!strncasecomp(cp, "newsreply:", 10)) { + /* + * Special Lynx type to handle news replies (followups). + */ + if (strncmp(cp, "newsreply", 9)) { + for (i = 0; i < 9; i++) + cp[i] = TOLOWER(cp[i]); + } + return(NEWSREPLY_URL_TYPE); + + } else if (!strncasecomp(cp, "snewspost:", 10)) { + /* + * Special Lynx type to handle snews posts. + */ + if (strncmp(cp, "snewspost", 9)) { + for (i = 0; i < 9; i++) + cp[i] = TOLOWER(cp[i]); + } + return(NEWSPOST_URL_TYPE); + + } else if (!strncasecomp(cp, "snewsreply:", 11)) { + /* + * Special Lynx type to handle snews replies (followups). + */ + if (strncmp(cp, "snewsreply", 10)) { + for (i = 0; i < 10; i++) + cp[i] = TOLOWER(cp[i]); + } + return(NEWSREPLY_URL_TYPE); + } else if (!strncasecomp(cp, "mailto:", 7)) { if (strncmp(cp, "mailto", 6)) { for (i = 0; i < 6; i++) @@ -904,26 +944,6 @@ PUBLIC int is_url ARGS1( } return(LYNXCGI_URL_TYPE); - } else if (!strncasecomp(cp, "newspost:", 9)) { - /* - * Special Internal Lynx type to handle news posts. - */ - if (strncmp(cp, "newspost", 8)) { - for (i = 0; i < 8; i++) - cp[i] = TOLOWER(cp[i]); - } - return(NEWSPOST_URL_TYPE); - - } else if (!strncasecomp(cp, "newsreply:", 10)) { - /* - * Special Internal Lynx type to handle news replies (followups). - */ - if (strncmp(cp, "newsreply", 9)) { - for (i = 0; i < 9; i++) - cp[i] = TOLOWER(cp[i]); - } - return(NEWSREPLY_URL_TYPE); - } else if (!strncasecomp(cp, "LYNXPRINT:", 10)) { /* * Special Internal Lynx type. @@ -1003,13 +1023,6 @@ PUBLIC int is_url ARGS1( */ return(LYCheckForProxyURL(filename)); - } else if (!strncasecomp(cp, "https:", 6)) { - if (strncmp(cp, "https", 5)) { - for (i = 0; i < 5; i++) - cp[i] = TOLOWER(cp[i]); - } - return(HTTPS_URL_TYPE); - } else if (!strncasecomp(cp, "http:", 5)) { if (strncmp(cp, "http", 4)) { for (i = 0; i < 4; i++) @@ -1017,6 +1030,13 @@ PUBLIC int is_url ARGS1( } return(HTTP_URL_TYPE); + } else if (!strncasecomp(cp, "https:", 6)) { + if (strncmp(cp, "https", 5)) { + for (i = 0; i < 5; i++) + cp[i] = TOLOWER(cp[i]); + } + return(HTTPS_URL_TYPE); + } else if (!strncasecomp(cp, "gopher:", 7)) { if (strncmp(cp, "gopher", 6)) { for (i = 0; i < 6; i++) |