Przeglądaj źródła

Bug localized.

The parser doesn't work well when // and # and /* */ are inside a string.
philippe_mingo 23 lat temu
rodzic
commit
48cccb180c
1 zmienionych plików z 1 dodań i 0 usunięć
  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 );