Show
Ignore:
Timestamp:
10.09.2009 10:34:59 (11 years ago)
Author:
davidb
Message:

Encoded entites < > etc. mapped back to original character

Files:
1 modified

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