Changeset 2081

Show
Ignore:
Timestamp:
01/22/08 03:24:59 (11 months ago)
Author:
anarcat
Message:

use escapeshellarg() properly and in both functions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/class/m_bro.php

    r2080 r2081  
    429429      return false; 
    430430    } 
     431    $file = escapeshellarg($file); 
     432    $dest = escapeshellarg($dest); 
    431433    if ($i == 0) { 
    432434#TODO new version of tar supports `tar xf ...` so there is no 
     
    535537 
    536538    // Last step // Copy -R 
    537     $src = escapeshellarg($this->convertabsolute($src)); 
    538     $dest = escapeshellarg($this->convertabsolute($dest)); 
     539    $src = $this->convertabsolute($src); 
     540    $dest = $this->convertabsolute($dest); 
     541    $src = escapeshellarg($src); 
     542    $dest = escapeshellarg($dest); 
    539543    if (!$src || !$dest) { 
    540544      $err->raise("bro",1);