mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-27 06:39:24 +00:00
Hardening suggestions for Stirling-PDF / extraExceptionStuff (#3867)
I've reviewed the recently opened PR ([3866 - exception handling error to warn etc](https://github.com/Stirling-Tools/Stirling-PDF/pull/3866)) and have identified some area(s) that could benefit from additional hardening measures. These changes should help prevent potential security vulnerabilities and improve overall code quality. Thank you for your consideration! 🧚🤖 Powered by Pixeebot [Feedback](https://ask.pixee.ai/feedback) | [Community](https://pixee-community.slack.com/signup#/domain-signup) | [Docs](https://docs.pixee.ai/)  Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
This commit is contained in:
parent
c7b8b6d1e1
commit
76329b10fc
@ -72,12 +72,12 @@ public class TempFileCleanupService {
|
|||||||
fileName ->
|
fileName ->
|
||||||
fileName.contains("jetty")
|
fileName.contains("jetty")
|
||||||
|| fileName.startsWith("jetty-")
|
|| fileName.startsWith("jetty-")
|
||||||
|| fileName.equals("proc")
|
|| "proc".equals(fileName)
|
||||||
|| fileName.equals("sys")
|
|| "sys".equals(fileName)
|
||||||
|| fileName.equals("dev")
|
|| "dev".equals(fileName)
|
||||||
|| fileName.equals("hsperfdata_stirlingpdfuser")
|
|| "hsperfdata_stirlingpdfuser".equals(fileName)
|
||||||
|| fileName.startsWith("hsperfdata_")
|
|| fileName.startsWith("hsperfdata_")
|
||||||
|| fileName.equals(".pdfbox.cache");
|
|| ".pdfbox.cache".equals(fileName);
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void init() {
|
public void init() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user