Skip to content

Commit ce0c22f

Browse files
committed
📝 update doc
Signed-off-by: cyw3 <2927096163@qq.com>
1 parent a493db3 commit ce0c22f

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

doc/en/guide/代码检查/规则包/enhanced_safety_java.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
9595
protected void configure(HttpSecurity http) throws Exception {
9696
http
9797
.csrf(csrf ->
98-
// 触发规则
99-
csrf.disable()
98+
csrf.disable() // 触发规则
10099
);
101100
}
102101
}
@@ -124,7 +123,7 @@ void bad(HttpServletRequest req, HttpServletResponse resp){
124123
String disHeader = "Attachment;Filename=" + doc.getName();
125124
response.setHeader("Content-Disposition", disHeader);
126125
ServletOutputStream out = response.getOutputStream();
127-
out.print(b);
126+
out.print(b); // 触发规则
128127
}
129128
}
130129
```

doc/zh/guide/代码检查/规则包/enhanced_safety_java.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
9595
protected void configure(HttpSecurity http) throws Exception {
9696
http
9797
.csrf(csrf ->
98-
// 触发规则
99-
csrf.disable()
98+
csrf.disable() // 触发规则
10099
);
101100
}
102101
}
@@ -124,7 +123,7 @@ void bad(HttpServletRequest req, HttpServletResponse resp){
124123
String disHeader = "Attachment;Filename=" + doc.getName();
125124
response.setHeader("Content-Disposition", disHeader);
126125
ServletOutputStream out = response.getOutputStream();
127-
out.print(b);
126+
out.print(b); // 触发规则
128127
}
129128
}
130129
```

0 commit comments

Comments
 (0)