Logo
Explore Help
Sign In
zig/pugz
1
0
Fork 0
You've already forked pugz
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
aca930af4167ab51e551418ea1f40be648aa8f05
pugz/tests/sample_data/pug/test/cases/auxiliary/includable.js

9 lines
145 B
JavaScript
Raw Normal View History

fix: add security protections and cleanup failing tests Security fixes: - Add path traversal protection in include/extends (rejects '..' and absolute paths) - Add configurable max_include_depth option (default: 100) to prevent infinite recursion - New error types: MaxIncludeDepthExceeded, PathTraversalDetected Test cleanup: - Disable check_list tests requiring unimplemented features (JS eval, filters, file includes) - Keep 23 passing static content tests Bump version to 0.2.2
2026-01-24 14:31:24 +05:30
var STRING_SUBSTITUTIONS = {
// table of character substitutions
'\t': '\\t',
'\r': '\\r',
'\n': '\\n',
'"': '\\"',
'\\': '\\\\',
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 36ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API