A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Remove unexpected carriage returns and line feeds from user-supplied data
Joined: Feb 25, 2011
Aug 01, 2011 13:36:12
I have a
where I am doing
But there is a vulnerability as stated by review team
Remove unexpected carriage returns and line feeds from user-supplied data used to construct an HTTP response.
Can anybody help me with this ? What exacltly can be done?
Author and ninkuma
Joined: Jan 10, 2002
Aug 01, 2011 13:43:36
First of all, the data should be encoded using
Secondly, stripping any unwanted characters seems like a simple matter of string substitution.
Asking smart questions
Books by Bear
Don't get me started about those stupid
subject: Remove unexpected carriage returns and line feeds from user-supplied data
Stripping Carriage Returns
What is the trick to get ReplaceAll to Work
Replace Carriage Returns in String
remove all occurrencies of carriage return from string
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014