Python and cgi and <a> problem!

CheapSkate gua81 at XXXyahoo.com
Tue Sep 24 03:40:21 EDT 2002


thanks dudes,
everything works fine,
im just doing some simple things, nothing that will break the code.

Cheers.

"Jon Ribbens" <jon+usenet at unequivocal.co.uk> wrote in message
news:slrnaovmel.dma.jon+usenet at snowy.squish.net...
> In article <Xns929330F5A61B0cliechtigmxnet at 62.2.16.82>, Chris Liechti
wrote:
> >>> print '<A href="%s">%s</A>' % (filename, filename)
> >>
> >> I hope none of your filenames have '"', ">" or "&" in.
> >
> > yeah i avoid characters that are special to the shell in my filenames -
i
> > even don't use " " very often. <wink>
> >
> > sure there are improvements, but its a start.
>
> I'm not sure recommending completely broken and insecure code is ever
> a good thing. No offence intended.





More information about the Python-list mailing list