Ticket #13109: defaulttags.py-patch

File defaulttags.py-patch, 794 bytes (added by htumblin, 14 years ago)

svn diff output

Line 
1Index: defaulttags.py
2===================================================================
3--- defaulttags.py (revision 12773)
4+++ defaulttags.py (working copy)
5@@ -274,12 +274,13 @@
6
7 class SsiNode(Node):
8 def __init__(self, filepath, parsed):
9- self.filepath, self.parsed = filepath, parsed
10+ self.filepath, self.parsed = Variable(filepath), parsed
11
12 def render(self, context):
13+ self.filepath = self.filepath.resolve(context)
14 if not include_is_allowed(self.filepath):
15 if settings.DEBUG:
16- return "[Didn't have permission to include file]"
17+ return "[Didn't have permission to include file, %s]" % self.filepath
18 else:
19 return '' # Fail silently for invalid includes.
20 try:
Back to Top