IniParser: Add work-around for php bug 76965

refs #3733
This commit is contained in:
Johannes Meyer 2019-04-17 10:00:42 +02:00
parent 766d73cb3f
commit 9d30cfc3b7
1 changed files with 2 additions and 1 deletions

View File

@ -304,6 +304,7 @@ class IniParser
$str = str_replace('\"', '"', $str);
$str = str_replace('\\\\', '\\', $str);
return $str;
// This replacement is a work-around for PHP bug #76965. Fixed with versions 7.1.24, 7.2.12 and 7.3.0.
return preg_replace('~^([\'"])(.*?)\1\s+$~', '$2', $str);
}
}