Changeset 6478

Show
Ignore:
Timestamp:
08/26/08 08:30:34 (5 years ago)
Author:
sasargen
Message:

fixes #3104 - removes manual urlencode of checkbox values because they are form fields and are automatically urlencoded by the browser when the form is submitted

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/callmonitor.module

    r6474 r6478  
    208208      // recording file 
    209209      $recording = $recordings[$value['uniqueid'] . $value['calldate']]; 
    210       $recordingCrypt = urlencode($crypt->encrypt($recording,$ARI_CRYPT_PASSWORD)); 
     210      $fileCrypt = $crypt->encrypt($recording,$ARI_CRYPT_PASSWORD); 
     211      $recordingCrypt = urlencode($fileCrypt); 
    211212 
    212213      // date and time 
     
    217218      // recording delete checkbox 
    218219      if ($CALLMONITOR_ALLOW_DELETE) { 
    219         $recording_delete_checkbox = "<td class='checkbox'><input type=checkbox name='selected" . ++$i . "' value=" . $recordingCrypt . "></td>"; 
     220        $recording_delete_checkbox = "<td class='checkbox'><input type=checkbox name='selected" . ++$i . "' value=" . $fileCrypt . "></td>"; 
    220221      } 
    221222 
     
    535536 
    536537    foreach($files as $key => $fileCrypt) { 
    537       $file = $crypt->decrypt(urldecode($fileCrypt),$ARI_CRYPT_PASSWORD); 
     538      $file = $crypt->decrypt($fileCrypt,$ARI_CRYPT_PASSWORD); 
    538539      if (is_writable($file)) { 
    539540        unlink($file); 
  • freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/voicemail.module

    r6474 r6478  
    408408        } 
    409409 
    410         $fileCrypt = urlencode($crypt->encrypt($file,$ARI_CRYPT_PASSWORD)); 
     410        $fileCrypt = $crypt->encrypt($file,$ARI_CRYPT_PASSWORD); 
    411411 
    412412        $tableText .= " 
     
    629629 
    630630      // decrypt path 
    631       $path = $crypt->decrypt(urldecode($pathCrypt),$ARI_CRYPT_PASSWORD); 
     631      $path = $crypt->decrypt($pathCrypt,$ARI_CRYPT_PASSWORD); 
    632632 
    633633      // get file parts for search 
     
    725725    foreach($files as $key => $pathCrypt) { 
    726726      // decrypt path 
    727       $pathPlain = $crypt->decrypt(urlencode($pathCrypt),$ARI_CRYPT_PASSWORD); 
     727      $pathPlain = $crypt->decrypt($pathCrypt,$ARI_CRYPT_PASSWORD); 
    728728      // add plain path to new array 
    729729      $filesPlain[] = $pathPlain;