*) Bugfix: supportedFileExt Function didn't chop http parameters before trying to detect the file extension

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@834 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2005-10-03 08:42:55 +00:00
parent f58cfbf9a8
commit 2b3f964037

View File

@ -271,7 +271,12 @@ public final class plasmaParser {
public static boolean supportedFileExt(URL url) {
String name = url.getFile();
int p = name.lastIndexOf('.');
int p = name.lastIndexOf('?');
if (p != -1) {
name = name.substring(0,p);
}
p = name.lastIndexOf('.');
if (p < 0) return true; // seams to be strange, but this is a directory entry or default file (html)
return supportedFileExtContains(name.substring(p + 1));
}