Skip to content

Commit bc97f81

Browse files
committed
bug fix
1 parent 697bf35 commit bc97f81

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<artifactId>dom4j</artifactId>
7272
<version>2.1.1</version>
7373
</dependency>
74-
74+
7575

7676
<!-- 获取url根域名-->
7777
<dependency>

src/main/java/org/joychou/controller/URLRedirect.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
@RequestMapping("/urlRedirect")
2323
public class URLRedirect {
2424

25-
@GetMapping("/redirect")
26-
public String redirect(@RequestParam("url") String url) {
27-
return "redirect:" + url;
28-
}
2925
/**
3026
* @disc: 存在URL重定向漏洞
3127
* @fix: 添加URL白名单 https://github.com/JoyChou93/trident/blob/master/src/main/java/CheckURL.java

0 commit comments

Comments
 (0)