Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

error handler reveals Server paths

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
dabase
Smarty n00b


Joined: 26 Jul 2003
Posts: 4

PostPosted: Wed Jun 30, 2004 1:39 pm    Post subject: error handler reveals Server paths Reply with quote

Hi

Were just using smarty in our cms Postnuke and i have got a message from our devs that smarty errors come with a file and a complete path.

It just would be nice if smarty would be packaged in a way where we can be sure that the smarty component in our system does not add a path disclosure to our code.
Maybe this is wanted behaviour, thats why i am not posting to the bugs forum.

Sebastian
team Postnuke
http://postnuke.com
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Jun 30, 2004 10:23 pm    Post subject: Reply with quote

Hi.

Perhaps consider using a custom error handler (via set_error_handler) to catch all errors and handle/rewrite them at your discretion? As a library, I think it is useful that Smarty provides paths on triggered errors.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP