question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jorgeucanocommented, Jan 20, 2020

fixed in the new version 😃

0reactions
d-koppenhagencommented, Jan 21, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found