summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/api.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-30 17:21:29 +0200
committerSimon Rettberg2020-07-31 12:05:13 +0200
commit4e31f99e098568c5d133125630533dad91d07348 (patch)
treed6302d3d526a79f64c0b081581679f928f55da54 /modules-available/serversetup-bwlp-ipxe/api.inc.php
parent[exams] More sanity checks regarding date/time and locations (diff)
downloadslx-admin-4e31f99e098568c5d133125630533dad91d07348.tar.gz
slx-admin-4e31f99e098568c5d133125630533dad91d07348.tar.xz
slx-admin-4e31f99e098568c5d133125630533dad91d07348.zip
[serversetup-bwlp-ipxe/statistics] Sanitize strings from clients
Some string from the clients might not be well suited for utf-8 representation. Add wrapper functions that clean utf-8 strings, or convert ANSI strings to UTF-8 while removing problematic chars.
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/api.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/api.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/api.inc.php b/modules-available/serversetup-bwlp-ipxe/api.inc.php
index dd559efa..dcfa7774 100644
--- a/modules-available/serversetup-bwlp-ipxe/api.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/api.inc.php
@@ -7,7 +7,7 @@
} else {
$builder = new ScriptBuilderIpxe();
}
- $bootEntryId = Request::get('beid', false, 'string');
+ $bootEntryId = Util::cleanUtf8(Request::get('beid', false, 'string'));
$entryId = Request::get('entryid', false, 'int');
if ($bootEntryId !== false) {
$entry = BootEntry::fromDatabaseId($bootEntryId);