[Zope-dev] "REQUEST" in id causes errors

Neil K NeilK@ActiveState.com
Wed, 8 Nov 2000 12:33:43 -0800


Any id with 'REQUEST' in it cannot be edited or viewed. If you don't believe
me, try it out yourself. In my case, I *need* a URL named
'BIG_REQUESTS.html' -- it's a Zope-based mirror of content from somewhere
else.

This fixes it:

/lib/python/ZPublisher/BaseRequest.py:
243c243
<         if find(path, '/REQUEST/') >= 0:
---
>         if find(path, 'REQUEST') >= 0:


I'm not sure if I did quite the right thing here... are delimiters always
slash? should we also check if the URL terminates in "/REQUEST"? What about
cgi parameters named 'REQUEST'?

Zope gurus, your comments please?

--
Neil Kandalgaonkar  <NeilK@ActiveState.com>
Web Application Developer, ActiveState