From: philippe_mingo Date: Mon, 28 Jan 2002 16:55:36 +0000 (+0000) Subject: Bug localized. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=5234fdbfe8d850a67cf0d5098de9a2c9dfe7fd17 Bug localized. The parser doesn't work well when // and # and /* */ are inside a string. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2261 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/administrator/options.php b/plugins/administrator/options.php index f1b5f6ee..29567efa 100644 --- a/plugins/administrator/options.php +++ b/plugins/administrator/options.php @@ -25,6 +25,7 @@ function parseConfig( $cfg_file ) { do { // Remove comments $c = trim( $cfg[$i] ); + // This is not correct. We should extract strings before removing comments. $c = preg_replace( '/\/\*.*\*\//', '', $c ); $c = preg_replace( '/#.*$/', '', $c ); $c = preg_replace( '/\/\/.*$/', '', $c );