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:
parent
057eb0b563
commit
0d03c2be29
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user