Project

General

Profile

Bug #9813

Fails saving accountkeys if name contains non-English characters

Added by Nikolaj Jørgensen 15 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
ACME
Target version:
-
Start date:
10/07/2019
Due date:
% Done:

0%

Estimated time:
Affected Version:
Affected Architecture:

Description

When trying to create a new set of account keys for use with ACME, and the name contains any special characters (such as æøå) the plugin fails and makes pfSense restore configuration.

The following appears in the log (System Logs > General Log Entries):

Oct 7 13:36:23    php-fpm    344    /acme/acme_accountkeys_edit.php: XML error: Undeclared entity error at line 973 in /conf/config.xml
Oct 7 13:36:23    php-fpm    344    /acme/acme_accountkeys_edit.php: pfSense is restoring the configuration /cf/conf/backup/config-1570447773.xml
Oct 7 13:36:23    php-fpm    344    /acme/acme_accountkeys_edit.php: New alert found: pfSense is restoring the configuration /cf/conf/backup/config-1570447773.xml

The config.xml(.bad) looks like:

<item>
  <name>Nikolaj J&oslash;rgensen</name>
</item>

Should have been looking like:

<item>
  <name><![CDATA[Nikolaj Jørgensen]]></name>
</item>

(like for email) or just prevent adding special characters like for certain other areas of pfSense.

Occurs in package v0.6.3.

Also available in: Atom PDF