Strip out trailing &_= for raw post bodies #2868

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Sam Stephenson 2005-11-21 08:04:28 +00:00
parent 7355d9f1bd
commit ede2a222ee
2 changed files with 3 additions and 0 deletions

@ -1,5 +1,7 @@
*SVN*
* Strip out trailing &_= for raw post bodies. Closes #2868. [Sam Stephenson]
* Pass multiple arguments to Element.show and Element.hide in JavaScriptGenerator instead of using iterators. [Sam Stephenson]
* Improve expire_fragment documentation. #2966 [court3nay@gmail.com]

@ -54,6 +54,7 @@ def read_params_from_post
content = stdinput.read(Integer(env_table['CONTENT_LENGTH'])) || ''
# fix for Safari Ajax postings that always append \000
content.chop! if content[-1] == 0
content.gsub! /&_=$/, ''
env_table['RAW_POST_DATA'] = content.freeze
end