mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-14 12:11:23 +01:00
[#979] Moved '../' '../../' replacement
This fixes issue where exported player pages' js and css links are one level too high
This commit is contained in:
parent
8928ded103
commit
0ff83713ec
@ -91,7 +91,7 @@ public abstract class SpecificExport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void exportPlayerPage(String playerName, String html) throws IOException {
|
protected void exportPlayerPage(String playerName, String html) throws IOException {
|
||||||
List<String> lines = Arrays.asList(html.split("\n"));
|
List<String> lines = Arrays.asList(html.replace("../", "../../").split("\n"));
|
||||||
|
|
||||||
File htmlLocation = new File(getPlayerFolder(), URLEncoder.encode(playerName, "UTF-8").replace(".", "%2E"));
|
File htmlLocation = new File(getPlayerFolder(), URLEncoder.encode(playerName, "UTF-8").replace(".", "%2E"));
|
||||||
htmlLocation.mkdirs();
|
htmlLocation.mkdirs();
|
||||||
@ -106,7 +106,7 @@ public abstract class SpecificExport {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
String html = response.getContent().replace("../", "../../");
|
String html = response.getContent();
|
||||||
exportPlayerPage(name, html);
|
exportPlayerPage(name, html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user