Changeset 6456
- Timestamp:
- 08/24/08 23:07:48 (5 years ago)
- Files:
-
- freepbx/branches/2.5/amp_conf/htdocs/recordings/includes/crypt.php (modified) (2 diffs)
- freepbx/branches/2.5/amp_conf/htdocs/recordings/misc/audio.php (modified) (1 diff)
- freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/callmonitor.module (modified) (1 diff)
- freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/voicemail.module (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.5/amp_conf/htdocs/recordings/includes/crypt.php
r6190 r6456 47 47 $i += 16; 48 48 } 49 return urlencode(base64_encode($enc_text));49 return base64_encode($enc_text); 50 50 } 51 51 … … 63 63 function decrypt($enc, $salt, $iv_len = 16) { 64 64 65 $enc = base64_decode( urldecode($enc));65 $enc = base64_decode($enc); 66 66 $n = strlen($enc); 67 67 $i = $iv_len; freepbx/branches/2.5/amp_conf/htdocs/recordings/misc/audio.php
r6190 r6456 17 17 $crypt = new Crypt(); 18 18 19 $path = $crypt->decrypt( urlencode($_GET['recording']),$ARI_CRYPT_PASSWORD);19 $path = $crypt->decrypt($_GET['recording'],$ARI_CRYPT_PASSWORD); 20 20 21 21 // strip ".." from path for security freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/callmonitor.module
r6190 r6456 208 208 // recording file 209 209 $recording = $recordings[$value['uniqueid'] . $value['calldate']]; 210 $recordingCrypt = $crypt->encrypt($recording,$ARI_CRYPT_PASSWORD);210 $recordingCrypt = urlencode($crypt->encrypt($recording,$ARI_CRYPT_PASSWORD)); 211 211 212 212 // date and time freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/voicemail.module
r6322 r6456 398 398 $duration = $value[duration]; 399 399 if (is_file($recording)) { 400 $recordingCrypt = $crypt->encrypt($recording,$ARI_CRYPT_PASSWORD);400 $recordingCrypt = urlencode($crypt->encrypt($recording,$ARI_CRYPT_PASSWORD)); 401 401 $recordingLink = "<a href='#' onClick=\"javascript:popUp('misc/recording_popup.php?recording=" . $recordingCrypt . "&date=" . $date . "&time=" . $time . "'); return false;\"> 402 402 " . _("play") . " … … 408 408 } 409 409 410 $fileCrypt = $crypt->encrypt($file,$ARI_CRYPT_PASSWORD);410 $fileCrypt = urlencode($crypt->encrypt($file,$ARI_CRYPT_PASSWORD)); 411 411 412 412 $tableText .= "
