mirror of
https://github.com/unraid/webgui.git
synced 2026-02-05 00:19:09 -06:00
Wireless: allow '$' character in username or password
- Need to escape the '$' character for PHP
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
$open_ssl = "/usr/local/emhttp/webGui/scripts/open_ssl";
|
||||
|
||||
// encrypt username and password before saving (if existing)
|
||||
if (!empty($_POST['USERNAME'])) $_POST['USERNAME'] = exec("$open_ssl encrypt \"{$_POST['USERNAME']}\"");
|
||||
if (!empty($_POST['PASSWORD'])) $_POST['PASSWORD'] = exec("$open_ssl encrypt \"{$_POST['PASSWORD']}\"");
|
||||
if (!empty($_POST['USERNAME'])) $_POST['USERNAME'] = exec("$open_ssl encrypt \"".str_replace('$','\$',$_POST['USERNAME'])."\"");
|
||||
if (!empty($_POST['PASSWORD'])) $_POST['PASSWORD'] = exec("$open_ssl encrypt \"".str_replace('$','\$',$_POST['PASSWORD'])."\"");
|
||||
|
||||
// update active wifi selection
|
||||
foreach ($keys as $key => $val) if (isset($val['GROUP'])) $keys[$key]['GROUP'] = 'saved';
|
||||
|
||||
Reference in New Issue
Block a user