mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use raw scanner mode in config_get()
We do not want PHP to parse the values for us. Use raw scanner mode to avoid issues with certain values, such as regular expressions. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
f55e3c21c6
commit
1af375828f
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ function config_get($section, $key) {
|
||||||
global $AUR_CONFIG;
|
global $AUR_CONFIG;
|
||||||
|
|
||||||
if (!isset($AUR_CONFIG)) {
|
if (!isset($AUR_CONFIG)) {
|
||||||
$AUR_CONFIG = parse_ini_file("../../conf/config", true);
|
$AUR_CONFIG = parse_ini_file("../../conf/config", true, INI_SCANNER_RAW);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $AUR_CONFIG[$section][$key];
|
return $AUR_CONFIG[$section][$key];
|
||||||
|
|
Loading…
Add table
Reference in a new issue