Skip to content

Commit

Permalink
Merge pull request #2126 from MGatner/ajax-return-url
Browse files Browse the repository at this point in the history
Limit storePreviousURL to certain requests
  • Loading branch information
lonnieezell authored Aug 15, 2019
2 parents b8a6f03 + 0669f8d commit 6f156c5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,17 @@ protected function gatherOutput($cacheConfig = null, $returned = null)
*/
public function storePreviousURL($uri)
{
// Ignore CLI requests
if (is_cli())
{
return;
}
// Ignore AJAX requests
if (method_exists($this->request, 'isAJAX') && $this->request->isAJAX())
{
return;
}

// This is mainly needed during testing...
if (is_string($uri))
{
Expand Down

0 comments on commit 6f156c5

Please sign in to comment.