summaryrefslogtreecommitdiffstats
path: root/core/lostpassword
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-28 22:27:52 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-28 22:27:52 +0200
commit22d22d19c079f54cf12a6b47981c22aa1432346d (patch)
treed7f477c28a6e8d56d2edb842a28679a97b4e88a6 /core/lostpassword
parentfed34aecfa5b36c031ed754ed245549aa4a4194b (diff)
downloadnextcloud-server-22d22d19c079f54cf12a6b47981c22aa1432346d.tar.gz
nextcloud-server-22d22d19c079f54cf12a6b47981c22aa1432346d.zip
Do urlencoding in linkTo functions
Diffstat (limited to 'core/lostpassword')
-rw-r--r--core/lostpassword/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php
index 3f58b03c982..8da86d5a360 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', array('user' => urlencode($_POST['user']), 'token' => $token));
+ $link = OC_Helper::linkToAbsolute('core/lostpassword', 'resetpassword.php', array('user' => $_POST['user'], 'token' => $token));
$tmpl = new OC_Template('core/lostpassword', 'email');
$tmpl->assign('link', $link, false);
$msg = $tmpl->fetchPage();