schematics: inputs should be sanitized
See original GitHub issue🐞 Bug report
Description
The inputs for the schematics to create a post or markdown should be sanitized.
🔬 Minimal Reproduction
The following command generated a new post as /blog/first/post.md
, the post
will not be found in this case.
ng g @scullyio/init:post --name="first/post"
A similar thing happens to the markdown schematic, this command creates invalid JSON in the config:
ng g @scullyio/init:markdown --name=my-test! --slug=my-test!
exports.config = {
projectRoot: "./src/app",
routes: {
'/my-test!/:my-test!': {
type: 'contentFolder',
my-test!: {
folder: "./my-test!"
}
}
}
};
💻Your Environment
Angular Version:
Latest
Scully Version:
Latest
🔥 Exception or Error
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to Prevent Web Attacks Using Input Sanitization
Sanitizing and validating inputs could prevent some of the most common website attacks. Here's how to secure your web forms and inputs.
Read more >Sanitizing Inputs: Avoiding Security and Usability Disasters
In this article we are going to review how to avoid Security and Usability Disasters and explain SQL injection.
Read more >When is it best to sanitize user input? - xss - Stack Overflow
I am leaning more towards the first method, because any data that came from user input must still be approached cautiously, where the...
Read more >The Importance of Input Sanitization in Databases - SolarWinds
In this blog post, I'll explore the ways your organization can improve their input sanitization, from the traditional regular expression and ...
Read more >Sanitize Your Inputs? - Kevin Smith
It's straightforward, fool-proof, and unlike "sanitizing" an input string, carries no risk of accidentally mangling the incoming data. For more ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fixed in the new version 😃
sent a PR: https://github.com/scullyio/scully/pull/210