mhttpd expand_env() is broken and leaves garbage text appended it’s output. i.e. in the case “$MIDAS_DIR” env.vairable is not defined, expand_env(“$MIDAS_DIR”) returns “$MIDAS_DIR/garbage test”. This garbage text is written to midas.log, then is returned by cm_msg_retrieve2() where it breaks web page processing because web browser requires json strings to be valid UTF8. This bug showed up in the EMMA DAQ station. Both midas-2019-03 release and head of develop have this bug. I have a fix that needs to be retested and commited to both branches. K.O.
Issue #183 resolved