Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby27/share/ruby/rss
File: rexmlparser.rb
# frozen_string_literal: false
[0] Fix | Delete
require "rexml/document"
[1] Fix | Delete
require "rexml/streamlistener"
[2] Fix | Delete
[3] Fix | Delete
module RSS
[4] Fix | Delete
[5] Fix | Delete
class REXMLParser < BaseParser
[6] Fix | Delete
[7] Fix | Delete
class << self
[8] Fix | Delete
def listener
[9] Fix | Delete
REXMLListener
[10] Fix | Delete
end
[11] Fix | Delete
end
[12] Fix | Delete
[13] Fix | Delete
private
[14] Fix | Delete
def _parse
[15] Fix | Delete
begin
[16] Fix | Delete
REXML::Document.parse_stream(@rss, @listener)
[17] Fix | Delete
rescue RuntimeError => e
[18] Fix | Delete
raise NotWellFormedError.new{e.message}
[19] Fix | Delete
rescue REXML::ParseException => e
[20] Fix | Delete
context = e.context
[21] Fix | Delete
line = context[0] if context
[22] Fix | Delete
raise NotWellFormedError.new(line){e.message}
[23] Fix | Delete
end
[24] Fix | Delete
end
[25] Fix | Delete
[26] Fix | Delete
end
[27] Fix | Delete
[28] Fix | Delete
class REXMLListener < BaseListener
[29] Fix | Delete
[30] Fix | Delete
include REXML::StreamListener
[31] Fix | Delete
include ListenerMixin
[32] Fix | Delete
[33] Fix | Delete
class << self
[34] Fix | Delete
def raise_for_undefined_entity?
[35] Fix | Delete
false
[36] Fix | Delete
end
[37] Fix | Delete
end
[38] Fix | Delete
[39] Fix | Delete
def xmldecl(version, encoding, standalone)
[40] Fix | Delete
super(version, encoding, standalone == "yes")
[41] Fix | Delete
# Encoding is converted to UTF-8 when REXML parse XML.
[42] Fix | Delete
@encoding = 'UTF-8'
[43] Fix | Delete
end
[44] Fix | Delete
[45] Fix | Delete
alias_method(:cdata, :text)
[46] Fix | Delete
end
[47] Fix | Delete
[48] Fix | Delete
end
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function