Changeset 4080

Show
Ignore:
Timestamp:
06/19/07 11:50:05 (6 years ago)
Author:
diego_iastrubni
Message:

fix for ticket:2006 - now the module works properly on systems in which the asterisk cli is colored

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/asterisk-cli/module.xml

    r2773 r4080  
    1515  <md5sum>af3c22f41599762122e075ac734b1612</md5sum> 
    1616  <changelog> 
     17*1.1* Fixed display on systems with colored asterisk console, fixes ticket:2006 
    1718*1.0* Fixed security issue, first release in 2.2 
    1819*0.001* Original Release 
  • modules/branches/2.3/asterisk-cli/page.cli.php

    r2882 r4080  
    6868  $badchars = array("'", "`", "\\", ";", "\""); // Strip off any nasty chars. 
    6969  $fixedcmd = str_replace($badchars, "", $txtCommand); 
    70   $ph = popen(stripslashes("asterisk -rx \"$fixedcmd\""), "r" ); 
     70  $ph = popen(stripslashes("asterisk -nrx \"$fixedcmd\""), "r" ); 
    7171  while ($line = fgets($ph)) 
    7272    echo htmlspecialchars($line);