Changeset 7587
- Timestamp:
- 04/27/09 00:53:22 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contributed_modules/modules/routepermissions/agi-bin/checkperms.agi
r7586 r7587 40 40 if ($res[0] === "NO") { 41 41 if ($res[1] != "") { 42 $AGI->exec_goto( $res[1]);42 $AGI->exec_goto(gotofix($res[1])); 43 43 exit; 44 44 } else { 45 45 $res = sql("SELECT faildest FROM routepermissions WHERE exten='-1'", "getRow"); 46 46 if ($res[0] != "" ) { 47 $AGI->exec_goto( $res[0]);47 $AGI->exec_goto(gotofix($res[0])); 48 48 exit; 49 49 } else { … … 97 97 } 98 98 99 function gotofix($goto) { 100 return strtr($goto, ",", "|"); 101 } 102 99 103 ?>
