Project

General

Profile

Actions

Bug #9813

closed

Fails saving accountkeys if name contains non-English characters

Added by Nikolaj Jørgensen over 4 years ago. Updated almost 4 years ago.

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

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus 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.

Actions #1

Updated by Viktor Gurov almost 4 years ago

  • Status changed from New to Resolved

Fixed in #10442

Actions

Also available in: Atom PDF