Linebreak added to Description and Validation fields of all DocumentTypes when saved
I have inherited a 6.1.5 project, and I have just noticed that all the document types when saved are adding \r\n to the beginning of the Description and Validation fields of properties.
So, if I add a description into a field and save it 3 times, Umbraco adds 3 line breaks to the beginning of the description.
This means that I can not save any content because the validation field is always invalid.
Oddly, when adding a new property to a document type, the Description and Validation fields already have a linebreak in them!
Hi Jan, I have fixed it now. It turns out someone had previously set encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary" in the httpRuntime module of the web.config file.
I figured it must be an issue unique to the project as I had never come across it in any of the new Umbraco installs I had done.
All I have to do now is figure out the implications of removing this setting!
Linebreak added to Description and Validation fields of all DocumentTypes when saved
I have inherited a 6.1.5 project, and I have just noticed that all the document types when saved are adding \r\n to the beginning of the Description and Validation fields of properties.
So, if I add a description into a field and save it 3 times, Umbraco adds 3 line breaks to the beginning of the description.
This means that I can not save any content because the validation field is always invalid.
Oddly, when adding a new property to a document type, the Description and Validation fields already have a linebreak in them!
Can anyone help, what is going on here?!
Hi Kieron
Do you have some source code? Or have you just noticed this behaviour when saving a document in Umbraco?
/Jan
Hi Jan, I have fixed it now. It turns out someone had previously set
encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary"
in thehttpRuntime
module of the web.config file.I figured it must be an issue unique to the project as I had never come across it in any of the new Umbraco installs I had done.
All I have to do now is figure out the implications of removing this setting!
is working on a reply...