Menu

#189 1.9 - html comments from permalink fail w/ certain setting

open
nobody
None
5
2006-11-14
2006-11-14
No

Problem: Errors when a user makes an html comment directly from a permalink. Comment is not saved.

Happens with the following options set in site.config:

Post Title for Permalink = checked
Use Unique Title = checked
Show comments on PermaLink page = checked

and this maro in a template that draws the calendar: <% radio.weblog.drawcalendar() %>

Temporary fix: Remove the drawcalendar() macro. That calendar code looks complicated if someone can take a look at it. Just enable the above settings to get it to error.

More Info:
newtelligence.DasBlog.Web.Core\WeblogCalendar.cs line 107
"A potentially dangerious Request.Form value was detected from the client...."

CommentView.aspx has validateRequest="false" set in the <@ Page %>

Discussion

  • Nobody/Anonymous

    Logged In: NO

    A better option would be to just turn off html comments, rather than lose the calendar, non html comments works, and then so does the calendar.

     
  • Nicholas Schweitzer

    Logged In: YES
    user_id=880901
    Originator: NO

    This is a problem with internal redirects of the post page URL. It's an issue with .NET. The work around is to change the following line in the web.config from "false" to "true":

    <configuration>
    <system.web>
    <pages validateRequest="false" />
    </system.web>
    </configuration>

     

Log in to post a comment.

MongoDB Logo MongoDB