Skip to content

Commit

Permalink
Merge pull request #561 from teclator/richtext_license
Browse files Browse the repository at this point in the history
SlideShow: escape license in plain text. (backport from SP3)
  • Loading branch information
teclator committed Mar 28, 2017
2 parents b351fc8 + bbaeb67 commit ad3082c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion library/packages/src/modules/SlideShow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,15 @@ def DetailsPageWidgets
# @return A term describing the widgets
#
def RelNotesPageWidgets(id)
widgets = AddProgressWidgets(:relNotesPage, RichText(@_rn_tabs[id]))
# Release notes in plain text need to be escaped to be shown properly (bsc#1028721)
rel_notes =
if @_rn_tabs[id] =~ /<\/.*>/
@_rn_tabs[id]
else
"<pre>#{String.EscapeTags(@_rn_tabs[id])}</pre>"
end

widgets = AddProgressWidgets(:relNotesPage, RichText(rel_notes))
Builtins.y2debug("widget term: \n%1", widgets)
deep_copy(widgets)
end
Expand Down
8 changes: 8 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 28 10:19:44 WEST 2017 - knut.anderssen@suse.com

- backported
- SlideShow: Escape plain text release notes being shown properly
in RichText (bsc#1028721).
- 3.1.215

-------------------------------------------------------------------
Thu Mar 16 13:48:06 CET 2017 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 3.1.214
Version: 3.1.215
Release: 0
Summary: YaST2 - Main Package
License: GPL-2.0
Expand Down

0 comments on commit ad3082c

Please sign in to comment.