Function listags() in xmlparse.inc and xmlreader.inc are different
-
I'm parsing my way through the code base and I have noticed a few things that might require some clean up. One of them is the listtags() function that appears in both /etc/inc/xmlparse.inc and /etc/inc/xmlreader.inc. It appears that the list of array names is different between the two versions of this function (eg. allowedhostname, build_port_path). Perhaps it would be best to consolidate the two functions into one, and move it /etc/inc/globals.inc or /etc/inc/util.inc?
Another potential for clean up appears to be the incomplete move from "/cf/conf/config.xml" to {$g['conf_path']}/config.xml (eg. /etc/inc/config.inc and /etc/inc/config.lib.inc). Or even "/conf/config.xml" still in /usr/local/www/status.php and /sbin/dhclient-script which appear to be the reason for the symbolic link /conf -> /cf/conf.
Of course, I may be barking up the wrong tree and if so, I'm sorry. I hope to help out with the code even though my specialty is embedded firmware and drivers.
Andrew
-
Those surely need synchronization.
Though its a more cleanup that needs to be done.
There really is no reason to use so many tags for the same thing and just need to unify those tags to just one 'item'.But surely someone needs to do the heavy work and upgrade code behind.
The others are leftovers missed from devs. Its better to report this issues through redmine.pfsense.org.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy