in src/main/java/com/googlesource/gerrit/plugins/web/SSIPageInputStream.java [89:105]
private String getIncludeFileName() throws IOException {
skipAll(INCLUDE_VIRTUAL_PREFIX.length());
StringBuilder includeFileName = new StringBuilder();
char last = '\0';
last = (char) currentIs.read();
while (last != '\"' && !currentIs.isNewLine() && last > 0) {
includeFileName.append(last);
last = (char) currentIs.read();
}
if (!currentIs.startsWith(INCLUDE_VIRTUAL_SUFFIX)) {
throw new IOException("Invalid SHTML include directive at line " + currentIs.getLineNr());
}
skipAll(INCLUDE_VIRTUAL_SUFFIX.length());
return includeFileName.toString();
}