mirror of
https://github.com/airsonic/airsonic.git
synced 2025-10-03 01:39:34 +02:00
Fix path issue in internal diagnostics page on Windows
This commit is contained in:
parent
aa65c21c57
commit
8fe890aea0
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ import org.springframework.jdbc.core.RowMapper;
|
|||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.*;
|
||||
|
@ -641,9 +642,9 @@ public class MediaFileDao extends AbstractDao {
|
|||
return query(
|
||||
"SELECT " + prefix(QUERY_COLUMNS, "media_file") + " FROM media_file " +
|
||||
"WHERE media_file.path != media_file.folder " +
|
||||
"AND media_file.path NOT LIKE concat(media_file.folder, '/%') " +
|
||||
"AND media_file.path NOT LIKE concat(media_file.folder, concat(?, '%')) " +
|
||||
"ORDER BY media_file.id LIMIT ?",
|
||||
rowMapper, count);
|
||||
rowMapper, File.separator, count);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue