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:
@@ -178,7 +178,10 @@ class IDF_Plugin_SyncMercurial
|
||||
|
||||
// Generate hgrc content
|
||||
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;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user