Bug localized.
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 28 Jan 2002 16:55:36 +0000 (16:55 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 28 Jan 2002 16:55:36 +0000 (16:55 +0000)
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

plugins/administrator/options.php

index f1b5f6e..29567ef 100644 (file)
@@ -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 );