Skip to content

Commit

Permalink
adatpted suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Oct 30, 2020
1 parent ef5ad9f commit a4490b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package/yast2-ruby-bindings.changes
Expand Up @@ -3,7 +3,7 @@ Thu Oct 29 11:30:49 UTC 2020 - Stefan Schubert <schubi@suse.com>

- Reporting augeas parsing errors and displaying them in rich-text
format (bsc#1174198).
- 4.2.8
- 4.2.9

-------------------------------------------------------------------
Wed Jan 22 15:04:11 UTC 2020 - Ancor Gonzalez Sosa <ancor@suse.com>
Expand Down
10 changes: 4 additions & 6 deletions src/ruby/yast/wfm.rb
Expand Up @@ -6,8 +6,6 @@
require "yast/yast"
require "cgi"

include CGI::Escape

# @private we need it as clients is called in global contenxt
GLOBAL_WFM_CONTEXT = proc {}
module Yast
Expand Down Expand Up @@ -229,8 +227,8 @@ def self.call_builtin_wrapper(*args)
"<li>YaST made a mistake and wrote invalid syntax earlier." \
" Please report a YaST bug.</li>" \
"</ol>"
msg + "Caller: #{escapeHTML(e.backtrace.first)}<br><br>" \
"Details: #{escapeHTML(e.message)}"
msg + "Caller: #{CGI::escapeHTML(e.backtrace.first)}<br><br>" \
"Details: #{CGI::escapeHTML(e.message)}"
end

# @param [Exception] e the caught exception
Expand All @@ -245,8 +243,8 @@ def self.call_builtin_wrapper(*args)
"Refer to https://www.suse.com/support/kb/doc?id=7018056.<br><br>"
end

msg + "Caller: #{escapeHTML(e.backtrace.first)}<br><br>" \
"Details: #{escapeHTML(e.message)}"
msg + "Caller: #{CGI::escapeHTML(e.backtrace.first)}<br><br>" \
"Details: #{CGI::escapeHTML(e.message)}"
end

# Handles a SignalExpection
Expand Down

0 comments on commit a4490b0

Please sign in to comment.