Hi,
I encountered a problem with the logic that steps through the environment variables and rewrites them to the system. The issue is that there is an environment variable where the value contains an = character. The rewrite process truncates the value after the second =.
E.g. :
ENV1=A=3;B=5;C=6
becomes
ENV1=A
The code in question is located here:
|
keyval = p[start:end].decode(locale.getpreferredencoding()).split('=') |
The fix should be really easy.
Instead of
keyval = p[start:end].decode(locale.getpreferredencoding()).split('=')
use
keyval = p[start:end].decode(locale.getpreferredencoding()).split('=', 1)
to ensure we only split on the first =.
Thanks and keep up the good work!
Hi,
I encountered a problem with the logic that steps through the environment variables and rewrites them to the system. The issue is that there is an environment variable where the value contains an = character. The rewrite process truncates the value after the second =.
E.g. :
ENV1=A=3;B=5;C=6becomes
ENV1=AThe code in question is located here:
xloil/libs/xlOil_Python/Package/xloil/_paths.py
Line 71 in e2df418
The fix should be really easy.
Instead of
use
to ensure we only split on the first =.
Thanks and keep up the good work!