diff options
author | Freya Murphy <freya@freyacat.org> | 2024-11-26 12:41:10 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-11-26 12:41:10 -0500 |
commit | 8041ff0cec445f20ff6e61e9aafa0dfe057e67b5 (patch) | |
tree | ddd2d9ee9164d1f63640ce5fac18eff8d7ed83d7 /src/web/helpers/html.php | |
parent | fix 404 (diff) | |
download | ldap_forwardauth-8041ff0cec445f20ff6e61e9aafa0dfe057e67b5.tar.gz ldap_forwardauth-8041ff0cec445f20ff6e61e9aafa0dfe057e67b5.tar.bz2 ldap_forwardauth-8041ff0cec445f20ff6e61e9aafa0dfe057e67b5.zip |
fix redirect
Diffstat (limited to '')
-rw-r--r-- | src/web/helpers/html.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web/helpers/html.php b/src/web/helpers/html.php index dc38e3a..2c90eca 100644 --- a/src/web/helpers/html.php +++ b/src/web/helpers/html.php @@ -12,6 +12,14 @@ function maybe_base64_encode(string $data): string { } } +function maybe_base64_decode(string $data): string { + if (is_base64($data)) { + return base64_decode($data); + } else { + return $data; + } +} + function esc(string $data): string { $data = trim(preg_replace('/\s\s+/', ' ', $data)); $data = str_replace('&', '&', $data); |