Show
Ignore:
Timestamp:
12/23/10 14:10:55 (2 years ago)
Author:
GameGamer43
Message:

closes #4710 - strips <> prior to adding the Inbound DID and CID Number to the database to prevent further issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/core/functions.inc.php

    r10720 r10723  
    35343534 
    35353535  if (empty($existing)) { 
     3536    //Strip <> just to be on the safe side otherwise this is not deleteable from the GUI 
     3537          $invalidDIDChars = array('<','>'); 
     3538          $extension = str_replace($invalidDIDChars,"",$extension); 
     3539          $cidnum = str_replace($invalidDIDChars,"",$cidnum);  
     3540 
    35363541    $destination= ($target) ? $target : ${$goto0.'0'}; 
    35373542    $sql="INSERT INTO incoming (cidnum,extension,destination,privacyman,pmmaxretries,pmminlength,alertinfo, ringing, mohclass, description, grppre, delay_answer, pricid) values ('$cidnum','$extension','$destination','$privacyman','$pmmaxretries','$pmminlength','$alertinfo', '$ringing', '$mohclass', '$description', '$grppre', '$delay_answer', '$pricid')";