diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-12-21 18:49:20 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-12-27 12:42:11 +0100 |
commit | 1af375828f7c4ef11e63e09e1070a9f77b679d71 (patch) | |
tree | 455d00a888acbce5da6e5d2ccd0c3f67a615e21b /web/lib | |
parent | f55e3c21c6a6ab01bd94c90a8910c44b7596660a (diff) | |
download | aur-1af375828f7c4ef11e63e09e1070a9f77b679d71.tar.gz aur-1af375828f7c4ef11e63e09e1070a9f77b679d71.tar.xz |
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>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/confparser.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/confparser.inc.php b/web/lib/confparser.inc.php index 41ee581a..39779113 100644 --- a/web/lib/confparser.inc.php +++ b/web/lib/confparser.inc.php @@ -4,7 +4,7 @@ function config_get($section, $key) { global $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]; |