diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-05-05 13:12:33 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-10 10:33:10 +0200 |
commit | baa9cb0fbb02acef896d1b5e0cb316bd993f5d1a (patch) | |
tree | 5648e8201aff74b4050275741e20cfa8cbcd9b8e /client/shared | |
parent | 8634dd3ac37bc821afd0e7f321eb0064247074a2 (diff) |
#804 Limit legacy SocketHidra key-value split
This bug was found by USAL and UPV. They reported that WebConsole was
showing scripts incompletely if they contain "=".
SocketHidra stores key-value pair as "<key>=<value>" string, and the
parser splits the string on "=" characters and pick the first two
elements. Thus, if the value also contains "=", the parser splits it and
only picks the first part.
Note: keys strings never contain "=".
With "scp=this=is=a=test" as example
BEFORE this commit the parser returns
"scp" as key
"this" as value
AFTER this commit the parser returns
"spc" as key
"this=is=a=test" as value
Limit legacy SocketHidra key-value split to two elements, key and value.
This commit also removes script decoding because WebConsole stores
them decoded since v1.2.0.
Diffstat (limited to 'client/shared')
0 files changed, 0 insertions, 0 deletions