veerrt / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

Patch for /trunk/recaptcha-plugins/dotnet/library/RecaptchaControlMvc.cs #130

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Patch to output an HTML-encoded string that should not be encoded again.

Original issue reported on code.google.com by trave...@gmail.com on 10 Jan 2012 at 4:35

Attachments:

GoogleCodeExporter commented 8 years ago
Not sure how "backward" compatible this is but...

Original comment by trave...@gmail.com on 10 Jan 2012 at 4:36

GoogleCodeExporter commented 8 years ago

Original comment by adrian.g...@gmail.com on 28 Mar 2012 at 8:34

GoogleCodeExporter commented 8 years ago
Is this currently an issue or just semantically incorrect? If you can provide a 
use case where we should *not* use string as a return type, that would be very 
helpful.

Original comment by adrian.g...@gmail.com on 30 Mar 2012 at 5:50

GoogleCodeExporter commented 8 years ago
By default ASP.NET MVC *3* encodes all output. So if you want to return 
code/html from your helper methods you have to return it as a MvcHtmlString. To 
reproduce it, just create a new MVC3 project in VS2010, add a ref to the 
Recaptcha lib and use the helper: @Html.GenerateCaptcha() in a view.

Original comment by trave...@gmail.com on 6 Apr 2012 at 3:07

GoogleCodeExporter commented 8 years ago
If you need a demo project or my comment does not make sense, let me know and I 
can zip one up and attach it.

Original comment by trave...@gmail.com on 6 Apr 2012 at 3:08

GoogleCodeExporter commented 8 years ago
Hi, This is still an issue in MVC4

Original comment by deont...@gmail.com on 12 Apr 2012 at 12:25

GoogleCodeExporter commented 8 years ago
The workaround for now is to use @Html.Raw(Html.GenerateCaptcha())

Original comment by J...@WalkerCodeRanger.com on 3 Sep 2014 at 7:37