Xml_safe_fieldname
-
In the following function, is there a reason why '_' is listed as a non-xml safe character?
/etc/inc/util.inc
/* return a fieldname that is safe for xml usage /
function xml_safe_fieldname($fieldname) {
$replace = array('/', '-', ' ', '!', '@', '#', '$', '%', '^', '&', '', '(', ')',
'_', '+', '=', '{', '}', '[', ']', '|', '/', '<', '>', '?',
':', ',', '.', ''', '\'
);
return strtolower(str_replace($replace, "", $fieldname));
} -
Bump
-
The reason is to confuse the enemy… :D As I understand it, this is only used for package name itself?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.