Changeset 775


Ignore:
Timestamp:
Apr 20, 2006, 3:41:02 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

Quick fix to partially fix HTML spam problem (references #79)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r773 r775  
    1212        #103 Fix empty Category/Locale list bug.
    1313        #54 Fix RSS redirection for backwards compatibility.
     14        #79 Partial fix to help combat HTML spam
    1415
    15160.52    5 March 2006
  • trunk/lib/OpenGuides/Template.pm

    r772 r775  
    263263        my $categories_text = $q->param('categories');
    264264        my $locales_text    = $q->param('locales');
     265
     266        # Basic sanity-checking. Probably lives elsewhere.
     267        $categories_text =~ s/</&lt;/g;
     268        $categories_text =~ s/>/&gt;/g;
     269        $locales_text =~ s/</&lt;/g;
     270        $locales_text =~ s/>/&gt;/g;
     271
    265272        @catlist = sort grep { s/^\s+//; s/\s+$//; $_; } # trim lead/trail space
    266273                        split("\r\n", $categories_text);
Note: See TracChangeset for help on using the changeset viewer.