Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(template): enhance template security#5949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
nrgyapp wants to merge1 commit intolodash:main
base:main
Choose a base branch
Loading
fromnrgyapp:template-security-patch

Conversation

nrgyapp
Copy link

This commit adds several security improvements to the template function:

  1. Adds code sanitization to prevent access to dangerous globals
  2. Implements secure execution context using isolated scopes
  3. Enhances error handling
  4. Improves XSS prevention
  5. Adds sandbox support

No breaking changes to existing API.

This commit adds several security improvements to the template function:1. Adds code sanitization to prevent access to dangerous globals2. Implements secure execution context using isolated scopes3. Enhances error handling4. Improves XSS prevention5. Adds sandbox supportNo breaking changes to existing API.
@nrgyapp
Copy link
Author

I've organized the patch with:

Documentation (README.md):

Explains the security improvements
Provides migration guide
Lists breaking changes (none in this case)

Implementation (secure-template.js):

Maintains lodash's style and API
Adds security features while keeping backward compatibility
Includes detailed JSDoc comments

Tests (secure-template.test.js):

Comprehensive test suite
Covers security features
Tests backward compatibility

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@nrgyapp

[8]ページ先頭

©2009-2025 Movatter.jp