Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

fixing XSS vulnerability #678

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

marcosptf
Copy link
Collaborator

@marcosptf marcosptf commented May 19, 2019

im working to fix the issue #675 ;

pr enable to merge:
->quokka/utils/text.py
was create a new function to validate and remove any tags from string;
remove_tags_from_string();
->tests/utils/test_text.py
was added test to neew function created:
test_remove_tags_from_string();

Att,
@marcosptf

@pep8speaks
Copy link

pep8speaks commented May 19, 2019

Hello @marcosptf! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 46:47: E231 missing whitespace after ':'
Line 46:56: E231 missing whitespace after ':'
Line 46:65: E231 missing whitespace after ':'
Line 46:74: E231 missing whitespace after ':'
Line 46:80: E501 line too long (88 > 79 characters)
Line 46:83: E231 missing whitespace after ':'
Line 47:76: E231 missing whitespace after ':'
Line 47:80: E501 line too long (117 > 79 characters)
Line 47:85: E231 missing whitespace after ':'
Line 47:94: E231 missing whitespace after ':'
Line 47:103: E231 missing whitespace after ':'
Line 47:112: E231 missing whitespace after ':'
Line 53:80: E501 line too long (127 > 79 characters)
Line 61:80: E501 line too long (126 > 79 characters)
Line 69:80: E501 line too long (137 > 79 characters)
Line 77:80: E501 line too long (141 > 79 characters)
Line 85:80: E501 line too long (149 > 79 characters)
Line 86:80: E501 line too long (83 > 79 characters)
Line 93:80: E501 line too long (135 > 79 characters)
Line 94:45: W291 trailing whitespace
Line 104:80: E501 line too long (126 > 79 characters)
Line 105:45: W291 trailing whitespace
Line 115:80: E501 line too long (136 > 79 characters)
Line 116:45: W291 trailing whitespace
Line 126:80: E501 line too long (149 > 79 characters)
Line 127:45: W291 trailing whitespace
Line 130:71: E231 missing whitespace after ':'
Line 130:80: E231 missing whitespace after ':'
Line 130:80: E501 line too long (112 > 79 characters)
Line 130:89: E231 missing whitespace after ':'
Line 130:98: E231 missing whitespace after ':'
Line 130:107: E231 missing whitespace after ':'
Line 137:80: E501 line too long (148 > 79 characters)
Line 138:45: W291 trailing whitespace
Line 141:71: E231 missing whitespace after ':'
Line 141:80: E231 missing whitespace after ':'
Line 141:80: E501 line too long (112 > 79 characters)
Line 141:89: E231 missing whitespace after ':'
Line 141:98: E231 missing whitespace after ':'
Line 141:107: E231 missing whitespace after ':'
Line 148:80: E501 line too long (139 > 79 characters)
Line 149:45: W291 trailing whitespace
Line 152:71: E231 missing whitespace after ':'
Line 152:80: E231 missing whitespace after ':'
Line 152:80: E501 line too long (112 > 79 characters)
Line 152:89: E231 missing whitespace after ':'
Line 152:98: E231 missing whitespace after ':'
Line 152:107: E231 missing whitespace after ':'

Line 14:1: E265 block comment should start with '# '
Line 23:80: E501 line too long (80 > 79 characters)
Line 30:1: E265 block comment should start with '# '
Line 36:1: E302 expected 2 blank lines, found 1
Line 47:1: E302 expected 2 blank lines, found 1
Line 48:46: W291 trailing whitespace
Line 50:1: E302 expected 2 blank lines, found 1
Line 55:1: E302 expected 2 blank lines, found 1
Line 60:1: E302 expected 2 blank lines, found 1
Line 61:80: E501 line too long (102 > 79 characters)
Line 62:80: E501 line too long (114 > 79 characters)
Line 64:80: E501 line too long (132 > 79 characters)

Comment last updated at 2019-06-07 10:54:37 UTC

@marcosptf marcosptf changed the title WIP: fixing XSS vulnerability fixing XSS vulnerability Jun 7, 2019
@marcosptf
Copy link
Collaborator Author

error fixed and pytest to xss prevent created

# 'og_image': 'foo',
# 'series': 'aa',
# 'asides': 'aaa'
# 'cover': 'foo',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider remover these comments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already fixed in another pr => #680

Copy link

@brenorr brenorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

Just look the comments.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants