generated from ossf/project-template
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* shell-injection.html: Improve hints further Raw strings are recommended but not really *required* in this case, so recommend them in hints, but don't *mandate* them in the answer. Allow r'...' and r"..." (both are allowed in Python). Be pickier about whitespace in a line but NOT in parentheses - in Python a newline ENDS a statement if it's not bracketed. Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com> * shell-injection.html: Be picky about Python indentation Python is picky about indentation. We should be too, but also provide clear hints if the indentation is wrong. Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com> * shell-injection.html: Extend hints further * Add more hints. In particular, help people trying to do the substitution. * Allow newlines and CRs at the beginning of the text (since it's allowed in Python). Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com> * shell-injection.html: Extend a hint Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com> * shell-injection.html: Add a few more hints Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com> * shell-injection.html: minor improvements Improve the text describing the PATTERN, and add a hint about using an empty string as the second parameter for re.sub. Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com> --------- Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
- Loading branch information
1 parent
6c937b1
commit 1b5842a
Showing
1 changed file
with
191 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters