I am using mod_proxy_html to gain access to my freepbx server located behind my main server. For some pages, it serves up the pages incorrectly, because it is updating the HTML to properly formed HTML.
In several places in the modules, there is a <SELECT name="foo"/> statement later followed by a </SELECT>. I believe this is incorrect, in that if there is a </close-tag> present, the "/" should not be present in the <open-tag> (ie, <open-tag> not <open-tag/>.
example from page.findmefollow.php:
<select name="pre_ring"/>
<?php
$default = (isset($pre_ring) ? $pre_ring : 0);
for ($i=0; $i <= 60; $i++) {
echo '<option value="'.$i.'" '.($i == $default ? 'SELECTED' : '').'>'.$i.'</option>';
}
?>
</select>
While somewhat minor, it still means having to correct all these errors in order to view them from in front of my proxy. I have located the error at the following locations (this is not all-inclusive):
announcement/page.announcement.php: <select name="recording"/>
announcement/page.announcement.php: <select name="repeat_msg"/>
core/page.did.php: <select name="mohclass"/>
core/page.routing.php: <select name="mohsilence"/>
daynight/page.daynight.php: <select name="itemid"/>
daynight/page.daynight.php: <select name="state"/>
findmefollow/page.findmefollow.php: <select name="pre_ring"/>
findmefollow/page.findmefollow.php: <select name="strategy"/>
findmefollow/page.findmefollow.php: <select name="remotealert"/>
findmefollow/page.findmefollow.php: <select name="toolate"/>
findmefollow/page.findmefollow.php: <select name="annmsg"/>
findmefollow/page.findmefollow.php: <select name="ringing"/>
ivr/page.ivr.php: <select name="dircontext"/>
ivr/page.ivr.php: <select name="annmsg"/>
recordings/page.recordings.php: <select name="sysrec"/>
timeconditions/page.timeconditions.php: <select name="hour_start"/>
timeconditions/page.timeconditions.php: <select name="minute_start"/>
timeconditions/page.timeconditions.php: <select name="hour_finish"/>
timeconditions/page.timeconditions.php: <select name="minute_finish"/>
timeconditions/page.timeconditions.php: <select name="wday_start"/>
timeconditions/page.timeconditions.php: <select name="wday_finish"/>
timeconditions/page.timeconditions.php: <select name="mday_start"/>
timeconditions/page.timeconditions.php: <select name="mday_finish"/>
timeconditions/page.timeconditions.php: <select name="month_start"/>
timeconditions/page.timeconditions.php: <select name="month_finish"/>
framework/htdocs/admin/common/jquery-1.1.3.1.js: [1, "<select>", "</select>"] ||
framework/htdocs/admin/common/libfreepbx.javascripts.js:arg=arg.toString();if(typeof arg=="string"){var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];var wrap=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||(!s.indexOf("<thead")||!s.indexOf("<tbody")||!s.indexOf("<tfoot")||!s.indexOf("<colg"))&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><colgroup>","</colgroup></table>"]||[0,"",""];div.innerHTML=wrap[1]+arg+wrap[2];while(wrap[0]--)
framework/htdocs/admin/common/script.legacy.js://this will hide or show all the <select> elements on a page
framework/htdocs/admin/common/script.legacy.js:// NOTE: <select> boxes do not support the .select method, therefore you cannot
framework/htdocs/admin/common/script.legacy.js:// use this function on any <select> elements
framework/htdocs/recordings/modules/followme.module: $followme_text .= "<select " . $follow_me_prering_time_text_box_options . " name='follow_me_prering_time'/>";
framework/htdocs/recordings/modules/followme.module: $followme_text .= "<select " . $follow_me_listring_time_text_box_options . " name='follow_me_listring_time'/>";