diff options
| author | Andrew Janke | 2016-06-13 08:01:08 -0400 |
|---|---|---|
| committer | GitHub | 2016-06-13 08:01:08 -0400 |
| commit | e9cdfb989e3b8f7ce138b9f414d962fac2ecac69 (patch) | |
| tree | b2ab8e14a1934d8397cd608ae4496ae3b8a83ea0 /Library | |
| parent | e1f0dec41e17edddc351e2ccd226077aa8f83bb0 (diff) | |
| download | brew-e9cdfb989e3b8f7ce138b9f414d962fac2ecac69.tar.bz2 | |
test-bot: strip additional invalid XML chars under Ruby 1.8.7 (#341)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/test-bot.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb index aee80a609..754123d5a 100644 --- a/Library/Homebrew/dev-cmd/test-bot.rb +++ b/Library/Homebrew/dev-cmd/test-bot.rb @@ -1001,7 +1001,9 @@ module Homebrew invalid_xml_pat = /[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/ output = output.gsub(invalid_xml_pat, "\uFFFD") else - output = output.delete("\000\a\b\e\f\x2\x1f") + # Invalid XML chars, as far as single-byte chars go + output = output.delete("\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0b\x0c\x0e\x0f" \ + "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f") end # Truncate to 1MB to avoid hitting CI limits |
