From 03ff8795c5212cb5bb8ec4cb5d78c442e8750bd5 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 18 Dec 2007 15:10:30 +0100 Subject: make hashs escapable in configfile #1282 If a hash is needed in config files (parsed by confToHash) it can be escaped as \# (backslash hash) to avoid having it treated as comment start darcs-hash:20071218141030-7ad00-4c0c7317f2f049537d8ed02b47c6c2a18627ee86.gz --- inc/confutils.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/confutils.php b/inc/confutils.php index 8133dc209..bf1791e76 100644 --- a/inc/confutils.php +++ b/inc/confutils.php @@ -147,8 +147,9 @@ function confToHash($file,$lower=false) { if ( !$lines ) return $conf; foreach ( $lines as $line ) { - //ignore comments - $line = preg_replace('/(?