Ticket #5537 (closed Patches: fixed)

Opened 4 months ago

Last modified 4 months ago

Admin > Phone Restart module displays raw PHP code due to missing PHP tag

Reported by: TimMillerDyck Assigned to:
Priority: regression Milestone: Undetermined
Component: Other Module Version: 2.10-branch
Keywords: phone restart Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: Asterisk 1.8 Backend Engine Version:

Description

In FreePBX 2.10 beta3/RC0 (as of 2012-01-22), the Admin > Phone Restart module has a typo where PHP code is displayed as HTML rather than executed.

diff -u /var/www/html/admin/modules/restart/page.restart.php.a /var/www/html/admin/modules/restart/page.restart.php.b
--- /var/www/html/admin/modules/restart/page.restart.php.a      2011-12-17 15:42:00.000000000 -0500
+++ /var/www/html/admin/modules/restart/page.restart.php.b      2012-01-19 01:16:10.000000000 -0500
@@ -32,7 +32,7 @@

 ?>
 <p>
-<?
+<?php
        echo "<form name='restart' action='".$_SERVER['PHP_SELF']."' method'post'>\n";
        echo "<input type='hidden' name='action' value='restart'>\n";
        echo "<input type='hidden' name='display' value='${display}'>\n";

Thanks,
Tim Miller Dyck

Change History

01/23/12 11:54:16 changed by GameGamer43

  • status changed from new to closed.
  • resolution set to fixed.

(In [13252]) closes #5537 - change <? to <?php thanks TimMillerDyck?