Ensure that PHP doesn't interpret read ini file values and therefor
scrambles the output of hgrc files (issue 523).
This commit is contained in:
parent
64c6674762
commit
d17098e703
@ -5,6 +5,10 @@ or newer to run properly!
|
|||||||
|
|
||||||
## Bugfixes
|
## Bugfixes
|
||||||
|
|
||||||
|
- A long standing bug in the Mercurial plugin that lead to corruption
|
||||||
|
of boolean configuration values in the `hgrc` of the served repository
|
||||||
|
has been fixed (issue 523).
|
||||||
|
|
||||||
- If an anonymous or authenticated user had no access to any project in a
|
- If an anonymous or authenticated user had no access to any project in a
|
||||||
forge, all projects were listed for him (but still no one was actually
|
forge, all projects were listed for him (but still no one was actually
|
||||||
accessible). This has been fixed.
|
accessible). This has been fixed.
|
||||||
|
@ -178,7 +178,10 @@ class IDF_Plugin_SyncMercurial
|
|||||||
|
|
||||||
// Generate hgrc content
|
// Generate hgrc content
|
||||||
if (is_file($hgrc_file)) {
|
if (is_file($hgrc_file)) {
|
||||||
$tmp_content = parse_ini_file($hgrc_file, true);
|
$tmp_content = @parse_ini_file($hgrc_file, true, INI_SCANNER_RAW);
|
||||||
|
if ($tmp_content === false) {
|
||||||
|
throw new Exception('could not parse "'.$hgrc_file.'" because of syntax problems');
|
||||||
|
}
|
||||||
$tmp_content['web']['allow_push'] = $allow_push;
|
$tmp_content['web']['allow_push'] = $allow_push;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user