Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-03-02 23:21:51 +0400
committerLukas Reschke <lukas@statuscode.ch>2013-03-02 23:21:51 +0400
commit3e3c0392928fa9e8df7a9d70993f6dccb5847053 (patch)
tree9de01c2914f5a6435384c664551bee59801f0fb5 /lib
parent8e5bbace718ad0c9fd9ccb7aa699cad8c34f5eea (diff)
Escape the data only in the template
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index ce426684fea..de1f870fd7e 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -323,14 +323,14 @@ class OC_Util {
$parameters[$value] = true;
}
if (!empty($_POST['user'])) {
- $parameters["username"] = OC_Util::sanitizeHTML($_POST['user']).'"';
+ $parameters["username"] = $_POST['user'];
$parameters['user_autofocus'] = false;
} else {
$parameters["username"] = '';
$parameters['user_autofocus'] = true;
}
if (isset($_REQUEST['redirect_url'])) {
- $redirect_url = OC_Util::sanitizeHTML($_REQUEST['redirect_url']);
+ $redirect_url = $_REQUEST['redirect_url'];
$parameters['redirect_url'] = urlencode($redirect_url);
}