Ticket #7817: WeatherScreen.diff

File WeatherScreen.diff, 624 bytes (added by Miguel Yarza <miguel.yarza@…>, 10 years ago)

Fix for GetData? function runScript argument escaping

  • WeatherScreen.php

     
    268268
    269269    // Generate args and run the script
    270270        $units = $this->units == 0 ? 'SI' : 'ENG';
    271         $output_array = $this->runScript($script, '-u '. escapeshellarg($units) .' -d '. escapeshellarg(getcwd() .'/'. data ." $location"));
     271        $output_array = $this->runScript($script, '-u '. escapeshellarg($units) .' -d '. escapeshellarg(getcwd() .'/'. data) .' '. escapeshellarg($location));
    272272
    273273    // Query db data items
    274274        $sh = $db->query('SELECT weatherdatalayout.dataitem