Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kieron McIntyre 117 posts 360 karma points
    Apr 01, 2014 @ 13:38
    Kieron McIntyre
    0

    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?!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2014 @ 14:29
    Jan Skovgaard
    0

    Hi Kieron

    Do you have some source code? Or have you just noticed this behaviour when saving a document in Umbraco?

    /Jan

  • Kieron McIntyre 117 posts 360 karma points
    Apr 01, 2014 @ 14:36
    Kieron McIntyre
    101

    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!

Please Sign in or register to post replies

Write your reply to:

Draft