Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Problem with ".." in template_c absolute path

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
jausions
Smarty Rookie


Joined: 06 Nov 2003
Posts: 10

PostPosted: Thu May 13, 2004 12:33 pm    Post subject: Problem with ".." in template_c absolute path Reply with quote

Hi,

Here's a diff file to fix the problem of having ".." in a path to templates_c/ dir

If your path is something like this:

/root/server/web/site/public/../templates_c

smarty_core_create_dir_structure() will attempt to create a folder named ".." under "public". Obviously this is wrong.

This http://www.11abacus.com/cvs/smarty/core.create_dir_structure.diff file resolves the problem.

Thanks,

-Philippe
Back to top
View user's profile Send private message Visit poster's website
Duncan
Smarty Pro


Joined: 16 Dec 2003
Posts: 166

PostPosted: Sun May 16, 2004 5:14 am    Post subject: Re: Problem with ".." in template_c absolute path Reply with quote

jausions wrote:
/root/server/web/site/public/../templates_c

Just out of curiosity: why would s.o. use ".." in absolute paths?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs 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