[EMAIL PROTECTED] schrieb:
Author: rgheck
Date: Mon May 21 17:34:29 2007
New Revision: 18445
@@ -405,6 +410,18 @@
return 0;
+ if (buffer.fileName() == included_file.toFilesystemEncoding()) {
+ Alert::error(_("Recursive input"),
+ bformat(_("Attempted to include file %1$s in itself! "
+ "Ignoring inclusion."), from_utf8(incfile)));
+ return 0;
+ }
+
@@ -560,6 +577,17 @@
+ if (buffer.fileName() == included_file) {
+ Alert::error(_("Recursive input"),
+ bformat(_("Attempted to include file %1$s in itself! "
+ "Ignoring inclusion."), from_utf8(incfile)));
+ return 0;
+ }
+
Richard,
once you use "included_file" and once "include_file.toFilesystemEncoding()".
This looks highly suspicious.
Michael