madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

datagrid is picking up data from REQUEST it should not #862

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. my datagrid is in a page that is called in an iframe with a post request
2. so the urls generated in the datagrid for navigation and sort have the added 
parameters from the iframe post which makes the links fail
3. so the sort url from the datagrid looks like that:
/index/index/mid/1/lang/en/country/US/view/canvas/parent/http%3A%2F%2Fcgi6.ebay.
com%2Fws%2F/rpctoken/634622016/env/production/globalid/EBAY-US/sp/mid%2Clang%

mid/1
lang/en, .... are from the iframe post.
I tried to clear $_REQUEST=NULL; to no avail
I tried $_SERVER['QUERY_STRING']; same thing so I am unsure how to clkear the 
REQUEST before calling the grid ?!?!?

Thanks

Please insert the appropriate values;
                    Zend Framework version:1.11
ZFDatgrid Version (Bvb_Grid::getVersion()):0.8
Operating system:
                               PHP Version:5.3
Database Server and version:
Source Adatapter:

Please provide any additional information below.

Original issue reported on code.google.com by jccompag...@gmail.com on 21 May 2012 at 5:41

GoogleCodeExporter commented 9 years ago
any comment ?

Original comment by jccompag...@gmail.com on 27 May 2012 at 12:52

GoogleCodeExporter commented 9 years ago
                unset($_POST);
                unset($_GET);
before loading the datagrid solved my problem

Original comment by jccompag...@gmail.com on 7 Jun 2012 at 11:11