1

Closed

Empty String or Null properties are still encoded

description

Empty String or Null properties are still encoded. This generates an error when the property was intended to have a null value and the AntiXss's encode method returns an empty string. Good example is a ListBox with values. The Text property for ListBox auto selects a value in the list item. Since an empty string is returned, ASP.NET generates an error:
'ListBox' has a SelectedValue which is invalid because it does not exist in the list of items.
Closed Apr 20, 2011 at 2:11 PM by bdorrans
Fixed in 4.0

comments