Skip to content

Commit

Permalink
Closes #1137: Setting a hidden variable "returntoreferer" in a login …
Browse files Browse the repository at this point in the history
…form will now cause the action to use the "referrer" address on a successful login. Version bump.

git-svn-id: https://code.elgg.org/elgg/trunk@3411 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information
marcus committed Jul 22, 2009
1 parent ff1e60a commit daa8f5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion actions/login.php
Expand Up @@ -50,7 +50,9 @@
datalist_set('first_admin_login', time());

forward('pg/admin/plugins');
} else
} else if (get_input('returntoreferer')) {
forward($_SERVER['HTTP_REFERER']);
} else
forward("pg/dashboard/");
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -13,7 +13,7 @@
* @link http://elgg.org/
*/

$version = 2009071701; // YYYYMMDD = Elgg Date
$version = 2009072201; // YYYYMMDD = Elgg Date
// XX = Interim incrementer

$release = '1.5'; // Human-friendly version name
Expand Down

0 comments on commit daa8f5f

Please sign in to comment.