Merge branch 'MDL-67316_38' of https://github.com/stronk7/moodle into MOODLE_38_STABLE
This commit is contained in:
+1
-1
@@ -448,7 +448,7 @@ function ldap_stripslashes($text) {
|
||||
$text = preg_replace_callback($quoted,
|
||||
function ($match) use ($specialchars) {
|
||||
if (ctype_xdigit(ltrim($match[1], '\\'))) {
|
||||
return chr(hexdec($match[1]));
|
||||
return chr(hexdec(ltrim($match[1], '\\')));
|
||||
} else {
|
||||
return str_replace($specialchars[LDAP_DN_SPECIAL_CHARS_QUOTED_ALPHA],
|
||||
$specialchars[LDAP_DN_SPECIAL_CHARS],
|
||||
|
||||
@@ -1313,12 +1313,12 @@ class t3lib_cs {
|
||||
array_push($code_decomp, chr($ord));
|
||||
}
|
||||
}
|
||||
$ascii[$this->UnumberToChar(hexdec($from))] = join('', $code_decomp);
|
||||
$ascii[$this->UnumberToChar(hexdec(str_replace('U+', '0x', $from)))] = join('', $code_decomp);
|
||||
}
|
||||
|
||||
// add numeric decompositions
|
||||
foreach ($number as $from => $to) {
|
||||
$utf8_char = $this->UnumberToChar(hexdec($from));
|
||||
$utf8_char = $this->UnumberToChar(hexdec(str_replace('U+', '0x', $from)));
|
||||
if (!isset($ascii[$utf8_char])) {
|
||||
$ascii[$utf8_char] = $to;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,13 @@ Procedure:
|
||||
|
||||
Local changes (to verify/apply with new imports):
|
||||
|
||||
- MDL-67316: PHP 7.4 compatibility. Wrong chars in hexdec() operations.
|
||||
Ensure that all the calls to hexdec() are passing exclusively
|
||||
correct hex chars. Before php74 they were silently discarded but
|
||||
with php74 a deprecation warning is produced. We haven't looked how
|
||||
this is fixed upstream because plans include to remove this
|
||||
library from core (see MDL-65809)
|
||||
|
||||
- MDL-67017: PHP 7.4 compatibility. Curly brackets.
|
||||
Remove all the deprecated curly bracket uses {} to access to strings/arrays
|
||||
by key. We haven't looked how this is fixed upstream because plans include
|
||||
|
||||
Reference in New Issue
Block a user