-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camo Filter doesn't return doc when disabled #102
Comments
Hmmm, ya this line https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/camo_filter.rb#L25 should return SomePipeline = HTML::Pipeline.new [
HTML::Pipeline::CamoFilter,
HTML::Pipeline::MarkdownFilter
]
SomePipeline.call("some input content", :disable_filters => [:camo]) Thoughts? |
@jch At the moment we are using it to disable the filter in enterprise land, but keep it everywhere else. I think a higher level disable filters could be great as well. |
@josh thanks for the fix, could you put them in PR's in the future? I like to link to specific PR's in the change logs. |
Yeah, sorry, it was a quick fix for .com purposes. We just hit the same issue, d'oh! But I kinda agree about just removing the filter if you aren't using it. |
Closing. Slated for the next release v1.6.0. Waiting on #105 before I cut that. |
During some testing this morning I started using the
disable_asset_proxy
option. It seems when you pass that in the CamoFilter just returns nil, instead of the doc causing the rest of the filter chain to break.The text was updated successfully, but these errors were encountered: