*) 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
pull/1/head
theli 20 years ago
parent f58cfbf9a8
commit 2b3f964037

@ -271,7 +271,12 @@ public final class plasmaParser {
public static boolean supportedFileExt(URL url) { public static boolean supportedFileExt(URL url) {
String name = url.getFile(); 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) 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)); return supportedFileExtContains(name.substring(p + 1));
} }

Loading…
Cancel
Save