snippet from config file:

       $sValue = null;
if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST[$sName] ) ) {
           $sValue = $_POST[$sName];
} elseif ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] == 'GET' && isset( $_GET[$sName] ) ) {
           $sValue = $_GET[$sName];
       } elseif ( oxSession::hasVar( $sName ) ) {
           $sValue = oxSession::getVar( $sName );
       } else {
           $sValue = null;
       }

according to it data is be taken from $_GET... or somehow $_SERVER['REQUEST_METHOD'] is set incorrectly on your side

--------------------------------------------------
From: "Darius Tumas" <[email protected]>
Sent: Monday, August 24, 2009 9:56 AM
To: <[email protected]>
Subject: Re: [oxid-dev-general] Problem with redirecting after paymentfrombank system. [Vorgang: #1DN5N223QY]

Yes i've red that while ago. Problem with that way to solve my problem is
that all data is sended by GET not by POST. Also i made experiment with
peace of code i found in thous mails. Everything is ok, if third party
system sends all data by GET, but in my situation, i'm getting all data in
POST, so in the end i have mixed GET - with cl, sid and fnc, and POST - with
data from third party system. So for redirection i need separated handler.

Also i cant understand, why oxid prioritizes data gathering from POST and
GET. For such system information as cl, sid and fnc i think it must check
$_REQUEST.


Respectfully,

Darius Tumas (a.k.a.)


On Mon, Aug 24, 2009 at 9:40 AM, Arvydas <[email protected]>wrote:

please check this url:
http://thread.gmane.org/gmane.comp.php.oxid.general/11/focus=19

--------------------------------------------------
From: "Darius Tumas" <[email protected]>
Sent: Monday, August 24, 2009 9:00 AM
To: <[email protected]>
Subject: Re: [oxid-dev-general] Problem with redirecting after payment
frombank system. [Vorgang: #1DN5N223QY]


 Thank you for answer Andreas. I solved this problem by creating request
handler in root directory. So bank system now redirects user to that
handler, it forms URL and then redirects (:( so many redirects) back to
shop, but now all data is colected in URL. So everything works.

Thanks for notice about validation. I will pay attention to that.

Respectfully,

Darius Tumas (a.k.a. Tokeiito)


On Mon, Aug 24, 2009 at 8:39 AM, anzido GmbH <[email protected]>
wrote:

 Hello Darius,

you're right: If you use $this->getConfig()->getParameter() then indeed
the
POST-data do have priority. You cann see the logic in function
getParameter() in the core-class oxconfig:

First the global $_POST-array is checked, then the $_GET-array and then
even the $_SESSION-array is checked for a fitting parameter (which is
deprecated but unfortunately still there).

So in this case to be sure to read the $_GET parameters you will have to
read them directly from the $_GET-array not using the getParameter()
method.
Be sure to validate those directly taken parameteres for preventing any
injection of evvil stuff.

Greetings!
Andreas Ziethen
CEO of anzido GmbH

--
NEU: PHP- und OXID-Schulungen in der anzido Akademie:
http://www.anzido-akademie.de

anzido GmbH
Kirchhörder Str. 12
44229 Dortmund
Tel.: 0231 - 60 71 079
Fax.: 0231 - 60 71 081
Mobil:0176 - 8325 1488
Email: [email protected]
Web:   http://www.anzido.com

USt-ID: DE257982972
Geschäftsführung: Andreas Ziethen
Amtsgericht Dortmund HRB 20883

-----Ursprüngliche Nachricht-----
Gesendet: 24.08.2009 00:55:55
Von: Darius Tumas <[email protected]>
An: <[email protected]>
Betreff: [oxid-dev-general] Problem with redirecting after payment from
bank system.
Vorgang: 1DN5N223QY

> Hello,
>
> I have problem after redirection from bank system.
> User is redirected to bank after step 3 in order. He makes payment >
there
and
> then submits form to the URL i gave from my shop.
>
> i'm sending to bank this redirection url:
> ?cl=thankyou&fnc=itoltorderpb&sid='.$this->getSession()->getId()
>
> But for some reason, after redirection, shop shows index page without > >
any
> errors and user is droped to thankyou only after page is refreshed. > It
seems
> that if there is some data in $_POST oxid does not pay attention to >
$_GET
> data. How to solve this?
>
> Respectfully,
>
> Darius Tumas (a.k.a. Tokeiito)
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

 _______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general


_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to