On Tue, 2006-07-18 at 18:03 -0700, SmileyChris wrote: > > Malcolm Tredinnick wrote: > > On Mon, 2006-07-17 at 03:30 -0700, SmileyChris wrote: > > > A couple of points: > > > If a markup filter fails due to an import error, I don't think it > > > should be marked as safe. > > > > Why not? The returned result is the empty string in that case and > > there's certainly no danger of that being presented in the raw. > > By the way, I just went and checked this for markup. > An unfinalized string is returned (not an empty string). So I still > think it shouldn't be marked as safe on an import error.
That's just a bug in the patch. A couple of mark_safe() calls also need escape() wrapped around them. A filter cannot be half-and-half for the reasons I gave earlier: it would be no better than not having this patch in at all. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---