Xml_safe_fieldname


  • Moderator

    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));
    }


  • Moderator

    Bump


  • Banned

    The reason is to confuse the enemy… :D As I understand it, this is only used for package name itself?


Log in to reply