Changeset 6246

Show
Ignore:
Timestamp:
08/01/08 16:34:47 (2 months ago)
Author:
ethans
Message:

Guess unlink doesn't always work....back to rm -f

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/agi-bin/dialparties.agi

    r6245 r6246  
    231231                                // Do a security check, we only numeric callerid numbers, otherwise code could be incjected in a cidnum field 
    232232                                // that could result in an arbitrary command being executed in this remove operation. 
    233                                 // TODO: why are we no using php unlink for this?, less overhead 
    234                                 // 
    235233                                if (ctype_digit($cidnum)) { 
    236                                         unlink("$astvarlibdir/sounds/priv-callerintros/$cidnum.*"); 
     234                                        exec("rm -f $astvarlibdir/sounds/priv-callerintros/$cidnum.*"); 
    237235                                } 
    238236                        } 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads