pfsense/pfsense — pull request #1228 by ExolonDX (2014-06-05 18:44:49+00:00)
Title: Update "pkg_edit.,php"

When evaluating "custom_php_after_head_command", if the PHP code also contains JavaScript ("squid_auth.xml" for example) then this will cause HTML errors, as you are not supposed to have anything between the closing HEAD tag and the opening BODY tag.

Add the CLOSEHEAD PHP variable, move the include HEAD.INC into the PHP IF statement and manually close the HEAD tab, else just include HEAD.INC