Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Invalid characters in included filename?

Quote Reply
Invalid characters in included filename?
I am trying to create a new set of dynamic pages that includes a certain numbered html file (issuex.htm), based on a parameter passed to the page.cgi template.

I have the code below in the template:
Code:
<%set fileloc = "/home/user/public_html/newsletter/issue$issue.htm"%>
<%include $fileloc%>
Which produces an error:

Error: Can't load included file '/home/user/public_html/newsletter/issue1.htm': Invalid characters in filename

The <%fileloc%> variable in the template dump looks fine to me...I can't work out why this won't work. If I manually put the path in the include line it works fine too. I have tried escaping various parts of the filename with no success either Frown.
Subject Author Views Date
Thread Invalid characters in included filename? aus_dave 3065 Sep 19, 2007, 10:47 PM
Thread Re: [aus_dave] Invalid characters in included filename?
brewt 3002 Sep 19, 2007, 10:57 PM
Thread Re: [brewt] Invalid characters in included filename?
aus_dave 2987 Sep 19, 2007, 11:00 PM
Thread Re: [aus_dave] Invalid characters in included filename?
brewt 2987 Sep 20, 2007, 12:31 AM
Post Re: [brewt] Invalid characters in included filename?
aus_dave 2984 Sep 20, 2007, 12:41 AM