We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e872991 commit 550a8abCopy full SHA for 550a8ab
Pragma/Docs/Models/Document.php
@@ -274,7 +274,7 @@ public function downloadfile($attachment = true) {
274
protected function extract_text($preserveLinesBreaks = true) {
275
ini_set('max_execution_time',0);
276
$content = '';
277
- if (file_exists($this->get_full_path())) {
+ if (file_exists($this->get_full_path()) && is_file($this->get_full_path())) {
278
$pathexec = str_replace(" ","\ ",$this->get_full_path());
279
$extrapath = defined("EXTRA_PATH") ? 'PATH=$PATH:'.EXTRA_PATH : '';
280
$content = shell_exec(escapeshellcmd($extrapath . ' textract '.escapeshellarg($pathexec).' --preserveLineBreaks '. ($preserveLinesBreaks ? 'true' : 'false')));
0 commit comments