mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	escape.c: should not freeze
* ext/cgi/escape/escape.c (optimized_escape_html): CGI.escapeHTML should return unfrozen new string. [ruby-core:72426] [Bug #11858] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1b107d48ef
								
							
						
					
					
						commit
						10a129cee7
					
				
					 3 changed files with 32 additions and 10 deletions
				
			
		|  | @ -30,7 +30,7 @@ preserve_original_state(VALUE orig, VALUE dest) | |||
| { | ||||
|     rb_enc_associate(dest, rb_enc_get(orig)); | ||||
| 
 | ||||
|     FL_SET_RAW(dest, FL_TEST_RAW(orig, FL_FREEZE|FL_TAINT)); | ||||
|     RB_OBJ_INFECT_RAW(dest, orig); | ||||
| } | ||||
| 
 | ||||
| static VALUE | ||||
|  | @ -69,7 +69,7 @@ optimized_escape_html(VALUE str) | |||
| 	return dest; | ||||
|     } | ||||
|     else { | ||||
| 	return str; | ||||
| 	return rb_str_dup(str); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu