mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
*) 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:
parent
f58cfbf9a8
commit
2b3f964037
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user