Ignore:
Timestamp:
2009-09-10T10:34:59+12:00 (15 years ago)
Author:
davidb
Message:

Encoded entites < > etc. mapped back to original character

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/cgi-bin/gsdlCGI.pm

    r19277 r20573  
    100100    my ($val) = @_;
    101101
     102    # convert any encoded entities to true form
     103    $val =~ s/&amp;/&/osg;
     104    $val =~ s/&lt;/</osg;
     105    $val =~ s/&gt;/>/osg;
     106    $val =~ s/&quot;/\"/osg;
     107    $val =~ s/&nbsp;/ /osg;
     108
     109
    102110    # ensure only alpha-numeric plus a few other special chars remain
    103111
     
    196204    }
    197205    else {
    198     $full_mess = "$mess\n";
     206    $full_mess = "$mess";
    199207    }
    200208 
Note: See TracChangeset for help on using the changeset viewer.