Skip to content

Commit

Permalink
Remove <?= from security scan because many images use them as file …
Browse files Browse the repository at this point in the history
…content.
  • Loading branch information
ve3 committed Nov 12, 2020
1 parent 8a14e4b commit 1bc1803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rundiz/Upload/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ protected function securityScan()
$file_content = file_get_contents($this->files[$this->input_file_name]['tmp_name']);

// scan php open tag
if (stripos($file_content, '<?php') !== false || stripos($file_content, '<?=') !== false) {
if (stripos($file_content, '<?php') !== false) {
// found php open tag. (<?php).
$this->setErrorMessage(
'RDU_SEC_ERR_PHP',
Expand Down

0 comments on commit 1bc1803

Please sign in to comment.