Glenn wrote:
> Now, if I can just figure-out how to *fix* this problem..... <g>
No problemo, we just check to see that the protocol is one that's allowed
(http, ftp or file). The problem is not the fix for the problem, but where
to apply it.
Now does this happen anywhere else? What about frames and forms?
Anyway here's a sollution for the IMG tag:
In htmldraw.c
Around line 141:
if(atom->ptr != IE_NULL)
{
And around line 252:
}
In html.c
In TAG_IMG:
int length = 0;
And after we have analyzed the URL string under SRC:
if(!strnicmp(img->URL, "http:", 5) || !strnicmp(img->URL, "ftp:", 4) ||
!strnicmp(img->URL, "file:", 5))
length = sizeof(struct picinfo);
And latter with the call to addatom() change "sizeof(struct picinfo)" into
"length".
I suggest you test this yourself Glenn, I only tested on local files and
besides I've screwed up the GIF handling when I tried to improve it's speed
so I see that there's supposed to be a picture but not what it is ;-)