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
I agree. Here's the link:
subject: Remove unexpected carriage returns and line feeds from user-supplied data
Stripping Carriage Returns
remove all occurrencies of carriage return from string
Replace Carriage Returns in String
What is the trick to get ReplaceAll to Work
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015