lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV How to work around special characters?


From: Foteos Macrides
Subject: Re: LYNX-DEV How to work around special characters?
Date: Wed, 17 Sep 1997 16:09:17 -0500 (EST)

address@hidden (Philip Webb) wrote:
>970916 Palmer King wrote: 
>> How would one get the following to be accepted by lynx w/o an error:
>>  lynxexec:/bin/tin alt.music.+live+
>> Lynx doesn't like the "+" signs at all, and I don't know HTML or Lynx
>> well enough to come up with a creative alternative.
>
>try  alt.music.+live+ : ie  &#n; , where  n  is the ASCII code.

        No.

        In exec_ok() of .src/LYGetFile.c, add  && *cp != '+'  to:
        
[...]
    /*
     *  Security: reject on strange character.
     */
    for (cp = link; *cp != '\0'; cp++) {
        if (!isalnum(*cp) && *cp != '_' && *cp != '-' &&
           *cp != ' ' && *cp != ':' && *cp != '.' &&
           *cp != '/' && *cp != '@' && *cp != '~' &&
           *cp != '$' && *cp != '+' && *cp != '\t') {
[...]                 ^^^^^^^^^^^^^

        ;( This is an FAQ regulars like Philip Webb should be able to
answer correctly by now. ):  Probably '&' should be in there, too.
In fact, it's not obvious to me that it shouldn't simply exclude ';'
(but all I know about Unix is what I picked up fortuitously in
guest accounts :).

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]