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>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.2.3</version>
|
<version>3.2.4</version>
|
||||||
<relativePath/> <!-- lookup parent from repository -->
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.ceticamarco</groupId>
|
<groupId>com.ceticamarco</groupId>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
<name>bit</name>
|
<name>bit</name>
|
||||||
<description>Simple Web-based text sharing platform</description>
|
<description>Simple Web-based text sharing platform</description>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>21</java.version>
|
<java.version>22</java.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -73,7 +73,11 @@ public class PostController {
|
||||||
throw new GenericErrorException(res.getLeft().getMessage(), "error");
|
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);
|
return new ResponseEntity<>(content, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue