You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing a mariadb instance with special characters (ampersand) in the root password field I've noticed the Warning: SimpleXMLElement::addChild(): unterminated entity reference ... in /usr/local/emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php on line 219.
On my installation (6.4.0-rc9f) this is the line $config = $xml->addChild('Config', $post['confValue'][$i]);
Looking in the XML template created, the ampersand has been converted to & which is something you do not want for a password field. Escaping instead of converting to safe html characters should be the way to go in terms of preserving the data. It is then up to the rendering component of the webGui to do its job to the display data safely.
Since escaping < and > is not possible between opening and closing XML tags, please consider switching to JSON, where escaping of quotes is possible with \ or SQLite where no escaping should be required.
PS: The escaped password value that was generated within the XML does not show up when updating the container, instead the default value populates the input.
The text was updated successfully, but these errors were encountered:
Switching the templates over to JSON would be a serious nightmare as there's roughly 400 templates available that would all need to be redone. (And XML is more human readable for those app maintainers who manually adjust the templates)
Another option would be for you to modify the resulting template and change the entry to be enclosed in a CDATA where there are no limitations on what's there.
After installing a mariadb instance with special characters (ampersand) in the root password field I've noticed the
Warning: SimpleXMLElement::addChild(): unterminated entity reference ... in /usr/local/emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php on line 219
.On my installation (6.4.0-rc9f) this is the line
$config = $xml->addChild('Config', $post['confValue'][$i]);
Looking in the XML template created, the ampersand has been converted to
&
which is something you do not want for a password field. Escaping instead of converting to safe html characters should be the way to go in terms of preserving the data. It is then up to the rendering component of the webGui to do its job to the display data safely.Since escaping
<
and>
is not possible between opening and closing XML tags, please consider switching to JSON, where escaping of quotes is possible with\
or SQLite where no escaping should be required.PS: The escaped password value that was generated within the XML does not show up when updating the container, instead the default value populates the input.
The text was updated successfully, but these errors were encountered: