Arrow characters are now correctly escaped in raw mode
bit / docker (push) Failing after 29s
Details
bit / docker (push) Failing after 29s
Details
This commit is contained in:
parent
8666383048
commit
6e1b8f878d
4
pom.xml
4
pom.xml
|
@ -5,7 +5,7 @@
|
|||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.2.3</version>
|
||||
<version>3.2.4</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.ceticamarco</groupId>
|
||||
|
@ -14,7 +14,7 @@
|
|||
<name>bit</name>
|
||||
<description>Simple Web-based text sharing platform</description>
|
||||
<properties>
|
||||
<java.version>21</java.version>
|
||||
<java.version>22</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
|
@ -73,7 +73,11 @@ public class PostController {
|
|||
throw new GenericErrorException(res.getLeft().getMessage(), "error");
|
||||
}
|
||||
|
||||
var content = "<pre>" + res.get().getContent() + "</pre>";
|
||||
var content = res.get().getContent();
|
||||
content = content.replaceAll("<", "<");
|
||||
content = content.replaceAll(">", ">");
|
||||
content = "<pre>" + content + "</pre>";
|
||||
|
||||
return new ResponseEntity<>(content, HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue