popen(), sendmail: Success?

Carsten Gaebler news at snakefarm.org
Fri Apr 11 11:03:35 EDT 2003


In article <v29im-ia2.ln1 at nb2.stroeder.com>, Michael Ströder wrote:
> 
> For security reasons I'd be scared of printing an arbitrary exception 
> message to stdout in a web application since it is sent to the user's browser!
> 

Of course I wouldn't do that in a real world situation. It was just a simple
example of how to handle an exception.

> stderr *is* captured by the web server and most times written to an error 
> log. That's where those error messages belong.

Right. But if you are a really big ISP (and the original poster's ISP *is*
big) you do not want to let your web servers write error logs.

> If you don't have access to 
> the error log redirect stderr to a local web application log file.

ACK.

cg.





More information about the Python-list mailing list