Open
Description
Hello
a javascript error is reported on all overrided pages containing javascript with charaters (>,&,<)
Example
We have identified the cause that breaks the javascript code (which is encoded).
The cause is the following:
The view source or partial of type (Nokogiri::HTML::DocumentFragment) which encodes characters by calling the method to_s in (Module Applicator /method apply_overrides ) line 52 (source = doc.to_s) :
Since we trust views files and partials,
By replace this line :
source = doc.to_s
by this one :
source = doc.to_s.gsub('<', '<').gsub('>', '>').gsub('&', '&')
The problem no longer exists
A PR was carried out on the subject #229
Thank you for considering this update.
Metadata
Assignees
Labels
No labels
Activity