github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

NZKoz / rexml-expansion-fix

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

This is the gem containing the monkeypatch fix for REXML — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Handle a bug which prevented parsing in some circumstances. 
NZKoz (author)
Sun Aug 31 09:41:33 -0700 2008
commit  784f16ba7de56e243330b846050222fb6d0d44e0
tree    dca71953c4cfa33b39080611fc55060eda6fbf63
parent  90668758853c543aa5bef57e6405bcb0aaf6be07
rexml-expansion-fix /
name age
history
message
file .gitignore Fri Aug 22 06:00:42 -0700 2008 Initial fix [NZKoz]
file LICENSE Fri Aug 22 06:00:42 -0700 2008 Initial fix [NZKoz]
file README.textile Fri Aug 22 06:00:42 -0700 2008 Initial fix [NZKoz]
file example.xml Fri Aug 22 06:00:42 -0700 2008 Initial fix [NZKoz]
directory lib/ Sun Aug 31 09:41:33 -0700 2008 Handle a bug which prevented parsing in some ci... [NZKoz]
file rexml-expansion-fix.gemspec Sun Aug 31 09:41:33 -0700 2008 Handle a bug which prevented parsing in some ci... [NZKoz]
README.textile

REXML Expansion Fix

The version of rexml which ships with ruby at present will not restrict the total number of entity expanstions when processing inline attributes. This can allow specially crafted documents to consume enormous amounts of CPU. To prevent this from happening this fix causes processing to abort processing after a certain number of expansions have taken place. The limit defaults to 10000 but you can change it as follows:

REXML::Document.entity_expansion_limit= 50

The example xml in example.xml can be used to verify that your application is safe.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server