You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2004/01/19 04:04:58 UTC
cvs commit: httpd-python/src psp_parser.l
grisha 2004/01/18 19:04:58
Modified: src psp_parser.l
Log:
Check for absolute path in include
Revision Changes Path
1.18 +2 -2 httpd-python/src/psp_parser.l
Index: psp_parser.l
===================================================================
RCS file: /home/cvs/httpd-python/src/psp_parser.l,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- psp_parser.l 4 Nov 2003 20:30:39 -0000 1.17
+++ psp_parser.l 19 Jan 2004 03:04:58 -0000 1.18
@@ -224,7 +224,7 @@
filename = strchr(yytext, '"') + 1;
filename[strchr(filename, '"')-filename] = '\0';
- if (PSP_PG(dir)) {
+ if (PSP_PG(dir) && !(filename[0] == '/' || filename[0] == '\\')) {
path = malloc(strlen(filename)+strlen(PSP_PG(dir))+1);
if (path == NULL) {
PyErr_NoMemory();