Permalink
Browse files

proper redirection of post requests to log.php.

  • Loading branch information...
padams
padams committed Apr 2, 2012
1 parent ad126d4 commit ad40e8425204f74055ca50df0eed99316d62e4ca
Showing with 10 additions and 6 deletions.
  1. +3 −0 blank.php
  2. +5 −4 log.php
  3. +2 −2 owa_requestContainer.php
View
@@ -0,0 +1,3 @@
<?php
// silence is golden.
?>
View
@@ -38,11 +38,12 @@
// log event
$ret = $owa->logEventFromUrl();
$r = owa_coreAPI::requestContainerSingleton();
$rt = $r->getRequestType();
$s = owa_coreAPI::serviceSingleton();
$rt = $s->request->getRequestType();
owa_coreAPI::debug('request type. '.$rt);
if ($rt === 'post') {
owa_lib::redirectBrowser( owa_coreAPI::getSetting('base', 'main_url').'/blank.php');
owa_lib::redirectBrowser( owa_coreAPI::getSetting('base', 'public_url').'blank.php');
} else {
echo owa_coreAPI::displayView(array(), 'base.pixel');
}
View
@@ -40,7 +40,7 @@ class owa_requestContainer {
var $server;
var $guid;
var $state;
var $request_type;
var $request_type = '';
var $timestamp;
var $current_url;
@@ -155,7 +155,7 @@ function __construct() {
$this->request_type = 'cli';
}
if ($this->request_type = 'get' || $this->request_type = 'post') {
if ( $this->request_type === 'get' || $this->request_type === 'post' ) {
$this->current_url = owa_lib::get_current_url();
}

0 comments on commit ad40e84

Please sign in to comment.