Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Escaping shell arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinx committed Jul 25, 2017
1 parent 4e47aa9 commit b3645b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/filemanager/class.filemanager.php
Expand Up @@ -57,7 +57,7 @@ public function __construct($get, $post, $files)
$this->rel_path .= "/";
}
if (!empty($get['query'])) {
$this->query = $get['query'];
$this->query = escapeshellarg($get['query']);
}
if (!empty($get['options'])) {
$this->foptions = $get['options'];
Expand All @@ -71,10 +71,10 @@ public function __construct($get, $post, $files)
}
// Search
if (!empty($post['search_string'])) {
$this->search_string = $post['search_string'];
$this->search_string = escapeshellarg($post['search_string']);
}
if (!empty($post['search_file_type'])) {
$this->search_file_type = $post['search_file_type'];
$this->search_file_type = escapeshellarg($post['search_file_type']);
}
// Create
if (!empty($get['type'])) {
Expand Down

0 comments on commit b3645b4

Please sign in to comment.