[Zope] AUTHENTICATED_USER considered harmfull :)

Hannu Krosing hannu@tm.ee
Wed, 22 Sep 1999 13:23:00 +0300


Hannu Krosing wrote:
> 
> Hannu Krosing wrote:
> >
> > Michel Pelletier wrote:
> > >
> > > Perhaps you'd like to provide a set of patches?  This would be very
> > > helpful.  You might be surprised how much DTML shows up embeded in the
> > > Zope source code, but you could probably sniff it all  out with grep and
> > > Emacs.
> >
> > It seems that running the following script in your Zope2 root does it
> >
> 
> Unfortunatly it changes some files that should not be changed, and
> thus the old syntax is not recognized any more.
> 
> It should be easy to fix by someone in the know by just copying back
> the .orig files

Seems it were lines 109 and 111 in
lib/python/DocumentTemplate/DT_HTML.py
that should be converted back to old syntax to look like this:

            if text[s:s+5] == '<!--#':
                n=s+5
                e=find(text,'-->',n)

-----------------
Hannu