Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MerlinAU.asp
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,8 @@ function AssignAjaxSetting (keyName, keyValue)
try
{
var decoded = atob(keyValue);
var password = decoded.split(':')[1] || '';
var separatorIndex = decoded.indexOf(':');
var password = (separatorIndex >= 0) ? decoded.slice(separatorIndex + 1) : '';
ajax_custom_settings.routerPassword = password;
}
catch (e)
Expand Down
5 changes: 4 additions & 1 deletion MerlinAU.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5334,7 +5334,10 @@ _GetLoginCredentials_()
_UpdateLoginPswdCheckHelper_ InitPWD
else
loginCredsDEC="$(echo "$loginCredsENC" | openssl base64 -d)"
thePWSDstring="$(echo "$loginCredsDEC" | sed "s/${userName}://")"
case "$loginCredsDEC" in
*:*) thePWSDstring="${loginCredsDEC#*:}" ;;
*) thePWSDstring="" ;;
esac
fi
oldPWSDstring="$thePWSDstring"
newPSWDstring="$thePWSDstring"
Expand Down
Loading