Changeset 3174 for freepbx/trunk/amp_conf/agi-bin
- Timestamp:
- 11/23/06 13:43:08 (7 years ago)
- Files:
-
- freepbx/trunk/amp_conf/agi-bin/phpagi.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/agi-bin/phpagi.php
r2499 r3174 1586 1586 foreach($parse as $token) 1587 1587 { 1588 if($in_token) // we previously hit a token starting with ' )' but not ending in ')'1588 if($in_token) // we previously hit a token starting with '(' but not ending in ')' 1589 1589 { 1590 $ret['data'] .= ' ' . trim($token, '() '); 1590 $tmp = trim($token); 1591 $tmp = $tmp{0} == '(' ? substr($tmp,1):$tmp; 1592 $tmp = substr($tmp,-1) == ')' ? substr($tmp,0,strlen($tmp)-1):$tmp; 1593 $ret['data'] .= ' ' . trim($tmp); 1591 1594 if($token{strlen($token)-1} == ')') $in_token = false; 1592 1595 } … … 1594 1597 { 1595 1598 if($token{strlen($token)-1} != ')') $in_token = true; 1596 $ret['data'] .= ' ' . trim($token, '() '); 1599 $tmp = trim(substr($token,1)); 1600 $tmp = $in_token ? $tmp : substr($tmp,0,strlen($tmp)-1); 1601 $ret['data'] .= ' ' . trim($tmp); 1597 1602 } 1598 1603 elseif(strpos($token, '='))
