author | zecke <zecke> | 2004-04-08 18:34:28 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-08 18:34:28 (UTC) |
commit | e892ef3b71ac582a3ee23e1a2a65e3b43121a40c (patch) (side-by-side diff) | |
tree | ee0a3b858daeca2dcbd24c196c31b18b47616f2e | |
parent | c8481d7f647ffdc08005f630263dfc05cfd7b230 (diff) | |
download | opie-e892ef3b71ac582a3ee23e1a2a65e3b43121a40c.zip opie-e892ef3b71ac582a3ee23e1a2a65e3b43121a40c.tar.gz opie-e892ef3b71ac582a3ee23e1a2a65e3b43121a40c.tar.bz2 |
Be a bit more picky on config files
-rw-r--r-- | library/config.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/config.cpp b/library/config.cpp index 8b60f60..0bfb476 100644 --- a/library/config.cpp +++ b/library/config.cpp @@ -523,11 +523,13 @@ void Config::read() // hack to avoid problems if big files are passed to test // if they are valid configs ( like passing a mp3 ... ) // I just hope that there are no conf files > 100000 byte // not the best solution, find something else later - if ( f.size() > 100000 ) { + if ( f.getch()!='[' ||f.size() > 100000 ) { + git = groups.end(); return; } + f.ungetch('['); QTextStream s( &f ); #if QT_VERSION <= 230 && defined(QT_NO_CODECS) |