1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-08 03:54:20 +01:00

Unwrap, only used here.

This commit is contained in:
Jean Paul Galea 2015-07-16 22:14:36 +02:00
parent 057eb0b563
commit 0d03c2be29

View File

@ -53,10 +53,6 @@ function logdie ($logger, $str)
die($str . "\n");
}
function unescape($s) {
return str_replace('\\', "", $s);
}
function getHttpVal($key, $defaultVal) {
$val = $defaultVal;
if (array_key_exists($key, $_GET)) {
@ -64,7 +60,8 @@ function getHttpVal($key, $defaultVal) {
} else if (array_key_exists($key, $_POST)) {
$val = $_POST[$key];
}
$v = unescape(trim($val));
$v = trim($val);
$v = str_replace('\\', "", $val);
return $v;
}