diff options
author | Simon Rettberg | 2019-03-27 16:26:06 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-27 20:40:55 +0100 |
commit | 5d471ecda67619c3dd5d2d064e4093d6d455b04e (patch) | |
tree | 32e55d194f737a5b6e1e846ba866ab049cc0bea9 /modules-available | |
parent | [baseconfig_bwlp] Update translations (diff) | |
download | slx-admin-5d471ecda67619c3dd5d2d064e4093d6d455b04e.tar.gz slx-admin-5d471ecda67619c3dd5d2d064e4093d6d455b04e.tar.xz slx-admin-5d471ecda67619c3dd5d2d064e4093d6d455b04e.zip |
[serversetup-bwlp-ipxe] Escape model names for form field names
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/page.inc.php | 3 | ||||
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/templates/localboot.html | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php index 3d5e2c15..9366b93f 100644 --- a/modules-available/serversetup-bwlp-ipxe/page.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php @@ -274,6 +274,7 @@ class Page_ServerSetup extends Page LEFT JOIN serversetup_localboot sl USING (systemmodel) ORDER BY systemmodel', ['cutoff' => $cutoff]); while ($row = $res->fetch(PDO::FETCH_ASSOC)) { + $row['modelesc'] = urlencode($row['systemmodel']); $row['options'] = $this->makeSelectArray(Localboot::BOOT_METHODS, $row); $models[] = $row; } @@ -908,7 +909,7 @@ class Page_ServerSetup extends Page foreach ($overrides as $model => $modes) { if (empty($modes)) // No override continue; - $params = ['model' => $model, 'EFI' => null, 'PCBIOS' => null]; + $params = ['model' => urldecode($model), 'EFI' => null, 'PCBIOS' => null]; foreach (['EFI', 'PCBIOS'] as $m) { if (empty($modes[$m])) continue; diff --git a/modules-available/serversetup-bwlp-ipxe/templates/localboot.html b/modules-available/serversetup-bwlp-ipxe/templates/localboot.html index 816459e8..0c6f0f03 100644 --- a/modules-available/serversetup-bwlp-ipxe/templates/localboot.html +++ b/modules-available/serversetup-bwlp-ipxe/templates/localboot.html @@ -46,7 +46,7 @@ <td><a href="?do=statistics&show=list&filters=systemmodel+%3D+{{systemmodel}}">{{systemmodel}}</a></td> <td class="text-right">{{cnt}}</td> <td> - <select class="form-control" name="override[{{systemmodel}}][PCBIOS]"> + <select class="form-control" name="override[{{modelesc}}][PCBIOS]"> <option value="" {{^bootmethod}}selected{{/bootmethod}}>{{lang_none}}</option> {{#options.PCBIOS}} <option {{selected}}>{{key}}</option> @@ -54,7 +54,7 @@ </select> </td> <td> - <select class="form-control" name="override[{{systemmodel}}][EFI]"> + <select class="form-control" name="override[{{modelesc}}][EFI]"> <option value="" {{^bootmethod}}selected{{/bootmethod}}>{{lang_none}}</option> {{#options.EFI}} <option {{selected}}>{{key}}</option> |