Bläddra i källkod

Bug localized.

The parser doesn't work well when // and # and /* */ are inside a string.
philippe_mingo 23 år sedan
förälder
incheckning
48cccb180c
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      plugins/administrator/options.php

+ 1 - 0
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 );