[Python] Recupero parametro GET da url
Lawrence Oluyede
l.oluyede a gmail.com
Mar 7 Ott 2008 09:59:32 CEST
On Tue, Oct 7, 2008 at 9:55 AM, Zanon Samuele <webs86 a gmail.com> wrote:
> eccolo:
>
> [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123] File
> "stampa_ordine.py", line 174, referer:
> http://dominio.net/ordini/index.php?ord_id=40
> [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123] print '<a
> href="'. output_filename '">PDF ORDINE</a>', referer:
> http://dominio.net/ordini/index.php?ord_id=40
> [Tue Oct 07 00:53:46 2008] [error] [client
> 79.28.248.123] ^,
> referer: http://dominio.net/ordini/index.php?ord_id=40
> [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123] SyntaxError:
> invalid syntax, referer: http://dominio.net/ordini/index.php?ord_id=40
> [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123] Premature end of
> script headers: stampa_ordine.py, referer:
> http://dominio.net/ordini/index.php?ord_id=40
Abbastanza chiaro.
print '<a href="'. output_filename '">PDF ORDINE</a>'
Gli apici dopo =" sono illegali. Devi farne l'escape:
print '<a href="\'. output_filename\'">PDF ORDINE</a>'
--
Lawrence, stacktrace.it - oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
Maggiori informazioni sulla lista
Python