summaryrefslogtreecommitdiffstats
path: root/web/lib/confparser.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-12-21 18:49:20 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-12-27 12:42:11 +0100
commit1af375828f7c4ef11e63e09e1070a9f77b679d71 (patch)
tree455d00a888acbce5da6e5d2ccd0c3f67a615e21b /web/lib/confparser.inc.php
parentf55e3c21c6a6ab01bd94c90a8910c44b7596660a (diff)
downloadaur-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/confparser.inc.php')
-rw-r--r--web/lib/confparser.inc.php2
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];