| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Critic review: https://critic.hoppipolla.co.uk/r/287 This is an external review system which you may optionally use for the code review of your pull request. |
Sorry, something went wrong.
|
|
Sorry, something went wrong.
|
I think when squashed this is now ready to land. |
Sorry, something went wrong.
|
|
Sorry, something went wrong.
As we no longer need the sanitizer to be shared between a filter and a tokenizer, move the entire sanitizer to the filter module.
This is imported into this repo as its expectations are very much implementation dependent, with expectations amended to match our actual behaviour.
|
|
Sorry, something went wrong.
| # Remove attributes with disallowed URL values | ||
| for attr in (attr_names & self.attr_val_is_uri): | ||
| assert attr in attrs | ||
| # I don't have a clue where this regexp comes from or why it matches those |
There was a problem hiding this comment.
It looks like this regex is trying to remove:
` Literal backtic... \x00-\x20 Ascii table characters starting at NULL up to and including Space -- Mostly non-printable characters... \x7f-\xa0 Bytes with values 127 (DELETE) -> 160. More non-printable characters... \s Whitespace
I don't know why it would be doing these things ...
Sorry, something went wrong.
There was a problem hiding this comment.
My assumption is it's something to do with legacy attribute parsing in old UAs, for whom such characters can alter parsing.
Sorry, something went wrong.
This should be unneeded since the sanitizer changes (html5lib#110)
This should be unneeded since the sanitizer changes (html5lib#110)
| Back | FazBrowse Home | New Git URL |
This drops support for the tokenizing side of thing, which is sadly the only side that works in previous releases. Fixes #72. See all discussion there.