feat: add SQL/SQLite, AppSec, Capstone incident-tracker, Gitea Actions CI and spaced repetition
Test and Lint / quality (push) Successful in 34s
Test and Lint / quality (push) Successful in 34s
This commit is contained in:
1 parent
0ac80d60d4
commit
9430a194c3
18 files changed
+422
-7
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class PathTraversalError(ValueError):
|
||||
"""Próba wyjścia poza dozwolony katalog bazowy."""
|
||||
|
||||
|
||||
def safe_join(base_dir: Path, relative_path: str) -> Path:
|
||||
raise NotImplementedError(
|
||||
"Rozwiąż (base_dir / relative_path).resolve() i sprawdź is_relative_to(base_dir.resolve())"
|
||||
)
|
||||
|
||||
|
||||
def redact_secrets(log_line: str) -> str:
|
||||
_ = re
|
||||
raise NotImplementedError("Zamień wartości po Bearer , token= oraz password= na '***'")
|
||||
Reference in new issue
Block a user