41 $this->is_xhr = $is_xhr;
43 $this->current_url = $current_url;
56 if (0 !== strpos($this->current_url, $this->site_url)) {
59 $path = substr($this->current_url, strlen($this->site_url));
66 foreach ($patterns as $pattern) {
67 if (preg_match($pattern,
$path)) {
72 $this->session->set(
'last_forward_from', $this->current_url);
__construct(ElggSession $session, $is_xhr, $site_url, $current_url)
Constructor.
setLastForwardFrom()
Capture the URL the user requested when they were redirected.
Handles common tasks when redirecting a request.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use