diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-09-03 19:12:52 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-09-03 21:51:32 +0200 |
commit | 5153b8b293b5485b9aa3d321f6a93979ec302068 (patch) | |
tree | efeaeac952647be092a405d247c92e7ec27f5aa9 /core | |
parent | 1a461924336f8ab227c135e13d7661b7a4f1e1df (diff) | |
download | nextcloud-server-5153b8b293b5485b9aa3d321f6a93979ec302068.tar.gz nextcloud-server-5153b8b293b5485b9aa3d321f6a93979ec302068.zip |
Add url-params to url with new parameter in linkTo function
Diffstat (limited to 'core')
-rw-r--r-- | core/lostpassword/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php index 8f86fe23aad..58dab597324 100644 --- a/core/lostpassword/index.php +++ b/core/lostpassword/index.php @@ -17,7 +17,7 @@ if (isset($_POST['user'])) { OC_Preferences::setValue($_POST['user'], 'owncloud', 'lostpassword', $token); $email = OC_Preferences::getValue($_POST['user'], 'settings', 'email', ''); if (!empty($email) and isset($_POST['sectoken']) and isset($_SESSION['sectoken']) and ($_POST['sectoken']==$_SESSION['sectoken']) ) { - $link = OC_Helper::linkToAbsolute('core/lostpassword', 'resetpassword.php').'?user='.urlencode($_POST['user']).'&token='.$token; + $link = OC_Helper::linkToAbsolute('core/lostpassword', 'resetpassword.php', array('user' => urlencode($_POST['user']), 'token' => $token)); $tmpl = new OC_Template('core/lostpassword', 'email'); $tmpl->assign('link', $link, false); $msg = $tmpl->fetchPage(); |