Ignore:
Timestamp:
Jul 15, 2011, 8:26:28 AM (13 years ago)
Author:
george
Message:
  • Uvozovky v názvech v SQL dotazech.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/routerboard.php

    r301 r317  
    4949    if($Commands != '')
    5050    {
    51       $Output = array();
    5251      $Commands = addslashes($Commands);
    5352      $Commands = str_replace('$', '\$', $Commands);
     53      //$Commands = str_replace(' ', '\ ', $Commands); 
    5454      $Command = $this->SSHPath.' -o ConnectTimeout='.$this->Timeout.' -l '.$this->UserName.' -i '.$this->PrivateKey.' '.$this->HostName.' "'.$Commands.'"';
    5555      if($this->Debug) echo($Command);
     56      $Output = array();
    5657      exec($Command, $Output);
    5758    } else $Output = '';
Note: See TracChangeset for help on using the changeset viewer.