From e892ef3b71ac582a3ee23e1a2a65e3b43121a40c Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 08 Apr 2004 18:34:28 +0000 Subject: Be a bit more picky on config files --- diff --git a/library/config.cpp b/library/config.cpp index 8b60f60..0bfb476 100644 --- a/library/config.cpp +++ b/library/config.cpp @@ -524,9 +524,11 @@ void Config::read() // 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 ); -- cgit v0.9.0.2