Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixes reported quote issue on $file in shel exec commands (MDL14325) …

…backported
  • Loading branch information...
commit 3c2e8010affe9cc56dc2c4ce6859eecba8e789a4 1 parent 1517448
diml authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  search/documents/physical_pdf.php
2  search/documents/physical_pdf.php
@@ -34,7 +34,7 @@ function get_text_for_indexing_pdf(&$resource){
34 34 else{
35 35 $file = escapeshellarg($CFG->dataroot.'/'.$resource->course.'/'.$resource->reference);
36 36 $command = trim($CFG->block_search_pdf_to_text_cmd);
37   - $text_converter_cmd = "{$moodleroot}{$command} \"$file\" -";
  37 + $text_converter_cmd = "{$moodleroot}{$command} $file -";
38 38 $result = shell_exec($text_converter_cmd);
39 39 if ($result){
40 40 return $result;

0 comments on commit 3c2e801

Please sign in to comment.
Something went wrong with that request. Please try again.