| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
of a script test.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
splat operator.
|
| | | | |
| | | | |
| | | | |
| | | | | |
xpath subtrees.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
the old SanitizerTest for html-scanner.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
marked them as pending.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
should_allow_form_tag test creation.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Loofah already deals with this.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Implemented ActionView: FullSanitizer, LinkSanitizer and WhiteListSanitizer in sanitizers.rb.
Deprecated protocol_separator and bad_tags.
Added new tests in sanitizers_test.rb and reimplemented assert_dom_equal with Loofah.
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since 6857415187810f1289068a448268264d0cf0844f we are using #safe_join to
join the content when an Array is given, so we must include the dependent
module here to make sure it's available when this module is used alone.
This was making Simple Form tests to fail with current master due to the
missing dependency.
|
| | | |
| | | |
| | | |
| | | | |
adapter, fixed from #16057 [ci skip]
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
(This is a manual merge of #9102)
|
| | | |
| | | |
| | | |
| | | | |
Closes #15214
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Since we are using both branches of the code is preferable to use
if/else over the early return.
|
| | | | |
|
| | | | |
|
| |_|/
|/| |
| | | |
Rename `include_seconds_or_options` to `options` to match 6b9356a (which removed the deprecation introduced by #6077). This has no functional impact because the parameter is passed directly through, but makes it clearer that the parameter no longer supports a boolean as input.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Original implementation has bugs if the regex contains a match group.
Example:
excerpt('This is a beautiful? morning', /\b(beau\w*)\b/i, :radius => 5)
Expected: "...is a beautiful? mor..."
Actual: "...is a beautifulbeaut..."
The original phrase was being converted to a regex and returning the text
either side of the phrase as expected:
'This is a beautiful? morning'.split(/beautiful/i, 2)
# => ["This is a ", "? morning"]
When we have a match with groups the match is returned in the array.
Quoting the ruby docs: "If pattern is a Regexp, str is divided where the
pattern matches. [...] If pattern contains groups, the respective matches will
be returned in the array as well."
'This is a beautiful? morning'.split(/\b(beau\w*)\b/iu, 2)
# => ["This is a ", "beautiful", "? morning"]
If we assume we want to split on the first match – this fix makes that
assumption – we can pass the already assigned `phrase` variable as the place
to split (because we already know that a match exists from line 168).
Originally spotted by Louise Crow (@crowbot) at
https://github.com/mysociety/alaveteli/pull/1557
|
|\ \ \
| | | |
| | | | |
[ci skip] correct output for asset_helper methods
|
| | | |
| | | |
| | | |
| | | | |
see cc255d3
|
|\ \ \ \
| | | | |
| | | | | |
remove unnecessary gsub for space in ActionView::Helpers#debug
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The helper will yield each matched word, and you can use this instead of the
':highlighter' option for more complex replacing logic:
highlight('My email is me@work.com', EMAIL_REGEXP) { |m| mail_to(m) }
# => 'My email is <a href="mailto:me@work.com">me@work.com</a>'
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Move cleanup into teardown, delete obsolete code.
|
| | | | | | |
|
| | | | | | |
|
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
fix build- see https://travis-ci.org/rails/rails/jobs/27578159#L2913.
|
|\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | | |
zuhao/refactor_actionview_cleanup_I18n_translations
Clean up I18n stored translations after test.
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Avoid hard-coded value in test setup and teardown.
|
| |/ / / |
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | | |
In actionview, eliminate calls to tag that use html_safe parameter values.
|
|/ / /
| | |
| | |
| | | |
This is generally unnecessary, since tag handles string quoting, except in one case (utf8_enforcer_tag) where we want to specify the encoding ourselves.
|
| | |
| | |
| | |
| | | |
This was also removed from #15542
|
|\ \ \
| | | |
| | | |
| | | | |
In tag helper, honor html_safe on arrays; also make safe_join more similar to Array.join
|
| |/ /
| | |
| | |
| | | |
similar to Array.join by first calling flatten.
|