We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92a393e commit b879d3bCopy full SHA for b879d3b
lib/oai/client.rb
@@ -331,7 +331,7 @@ def parse_date(value)
331
# Regex is from WebCollab:
332
# http://webcollab.sourceforge.net/unicode.html
333
def strip_invalid_utf_8_chars(xml)
334
- return xml unless xml
+ return nil unless xml
335
336
# If it's in a specific encoding other than BINARY, it may trigger
337
# an exception to try to gsub these illegal bytes. Temporarily
0 commit comments