From: Wilfried Göesgens Date: Thu, 1 Oct 2009 19:03:49 +0000 (+0000) Subject: * scan for XML files while reading a template; xml shares the same notation as our... X-Git-Tag: v7.86~822 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6e51d83baa4d77cde56bc05c39bd34141ba8bb48 * scan for XML files while reading a template; xml shares the same notation as our template hooks. --- diff --git a/webcit/subst.c b/webcit/subst.c index fbbb6b8e1..8bf67c1c8 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -1505,7 +1505,11 @@ void *load_template(StrBuf *filename, StrBuf *Key, HashList *PutThere) /** Find one */ pos = (-1); for (; pch < pE; pch ++) { - if ((*pch=='<')&&(*(pch + 1)=='?')) + if ((*pch=='<')&&(*(pch + 1)=='?') && + !((pch == pS) && /* we must ommit a