mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-11845 fixed security issues in curl related code in new download_file_content() + minor fixes in Snoopy; merged from MOODLE_19_STABLE
This commit is contained in:
parent
407d81349c
commit
599f06cff1
2 changed files with 77 additions and 32 deletions
|
@ -259,7 +259,7 @@ class Snoopy
|
|||
break;
|
||||
default:
|
||||
// not a valid protocol
|
||||
$this->error = 'Invalid protocol "'.$URI_PARTS["scheme"].'"\n';
|
||||
$this->error = 'Invalid protocol "'.$URI_PARTS["scheme"]; // moodlefix
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
@ -425,7 +425,7 @@ class Snoopy
|
|||
|
||||
default:
|
||||
// not a valid protocol
|
||||
$this->error = 'Invalid protocol "'.$URI_PARTS["scheme"].'"\n';
|
||||
$this->error = 'Invalid protocol "'.$URI_PARTS["scheme"]; //moodlefix
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
@ -720,13 +720,13 @@ class Snoopy
|
|||
chr(176),
|
||||
chr(39),
|
||||
chr(128),
|
||||
"ä",
|
||||
"ö",
|
||||
"ü",
|
||||
"Ä",
|
||||
"Ö",
|
||||
"Ü",
|
||||
"ß",
|
||||
"<EFBFBD>",
|
||||
"<EFBFBD>",
|
||||
"<EFBFBD>",
|
||||
"<EFBFBD>",
|
||||
"<EFBFBD>",
|
||||
"<EFBFBD>",
|
||||
"<EFBFBD>",
|
||||
);
|
||||
|
||||
$text = preg_replace($search,$replace,$document);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue