mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-22 09:14:38 -04:00
fix Servlet template on conditional file include with use of conditional template pattern in included template file (example IndexCreateQueues_p.html)
see bug http://bugs.yacy.net/view.php?id=215
This commit is contained in:
@ -421,7 +421,7 @@ public final class TemplateEngine {
|
||||
}
|
||||
final PushbackInputStream pis2 = new PushbackInputStream(new ByteArrayInputStream(include.getBytes()));
|
||||
structure.append(ASCII.getBytes("<fileinclude file=\"")).append(filename).append(close_tagn);
|
||||
structure.append(writeTemplate(pis2, out, pattern, dflt, prefix));
|
||||
structure.append(writeTemplate(pis2, out, pattern, dflt, new byte[0])); //clear pattern prefix for include
|
||||
structure.append(ASCII.getBytes("</fileinclude>\n"));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user