Commit 7a67bde3a3aaa035009f28e19959dff85750c539
1 parent
2c657482
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
virtuoso: remove invalid chars
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/virtuoso/lib/virtuoso_plugin/noosfero_harvest.rb
@@ -148,7 +148,7 @@ class VirtuosoPlugin::NoosferoHarvest | @@ -148,7 +148,7 @@ class VirtuosoPlugin::NoosferoHarvest | ||
148 | 148 | ||
149 | def process_value(value) | 149 | def process_value(value) |
150 | if value.kind_of?(String) | 150 | if value.kind_of?(String) |
151 | - value = /^https?:\/\//.match(value) ? RDF::URI.new(value) : RDF::Literal.new(strip_tags(value)) | 151 | + value = /^https?:\/\//.match(value) ? RDF::URI.new(value) : RDF::Literal.new(strip_tags(value).delete("\n|\r")) |
152 | else | 152 | else |
153 | value = RDF::Literal.new(value) | 153 | value = RDF::Literal.new(value) |
154 | end | 154 | end |