Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping shell arguments #1013

Merged
merged 1 commit into from Jul 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Escaping shell arguments
  • Loading branch information
sphinx committed Jul 25, 2017
commit b3645b4c6718cef6de7003f41aafe7bfcc0395d1
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