Skip to content

Commit

Permalink
Merge pull request #2257 from openstax/sanitize-img-fix
Browse files Browse the repository at this point in the history
do not erase align attribute from img
  • Loading branch information
camliu89 authored Jan 15, 2021
2 parents d41b8d9 + f9cbc3c commit 6a5d665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routines/build_teacher_exercise_content_hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class TeacherExerciseScrubber < Rails::Html::PermitScrubber
h4
)
ALLOWED_ATTRS = %w(
alt title src width height style data-math type
alt title src width height style data-math type align
)
ALLOWED_IFRAME_ATTRS = %w(
allowfullscreen class frameborder height mozallowfullscreen
Expand Down

0 comments on commit 6a5d665

Please sign in to comment.