[Zope] Strange issues at string operations with request variables

2012-01-04 Thread Subhendu Kumar Giri

Hi Lukesh,

It is possible through apache |RewriteEngine.

Subhendu
|--

Hi all,
I have discovered strange issues with all request variables. Here are 
examples only, but I was try all useable variables in the REQUEST.
I want to use redirect to another server with same relative link, but 
different domain,some like that:
http://www.otherdomain.com' + 
URLPATH0)">


It does not work even if I make obstructions for request variables like 
_.str(), _[''] etc.
In cases below variable 'redirect_URL' seems OK, but redirect goes into 
loop.
http://www.otherdomain.com' + 
PATH_TRANSLATED)">
http://www.otherdomain.com' + 
_.str(_['URLPATH1']))">

http://www.otherdomain.com')">
In cases below variable 'redirect_URL' = 'h'.
URL.replace(BASE0,'http://www.otherdomain.com')[0])">
URL.replace(_.string.split(HTTP_HOST,':')[0],'www.otherdomain.com')[0])">

I was try different (very old) Zope, but result is the same.
It is possible my uncorrect handle with request variables, but how to 
handle correct with them?

Many thanks,
J. Lukesh
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Strange issues at string operations with request variables

2012-01-04 Thread Jaroslav Lukesh
Hi all,

I have discovered strange issues with all request variables. Here are 
examples only, but I was try all useable variables in the REQUEST.

I want to use redirect to another server with same relative link, but 
different domain,some like that:

http://www.otherdomain.com' + 
URLPATH0)">


It does not work even if I make obstructions for request variables like 
_.str(), _[''] etc.

In cases below variable 'redirect_URL' seems OK, but redirect goes into 
loop.

http://www.otherdomain.com' + 
PATH_TRANSLATED)">
http://www.otherdomain.com' + 
_.str(_['URLPATH1']))">
http://www.otherdomain.com')">

In cases below variable 'redirect_URL' = 'h'.

http://www.otherdomain.com')[0])">



I was try different (very old) Zope, but result is the same.

It is possible my uncorrect handle with request variables, but how to handle 
correct with them?

Many thanks,

J. Lukesh 
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )