Changeset 1530:e351294c9550

Show
Ignore:
Timestamp:
10/20/10 16:49:05 (3 years ago)
Author:
Thomas Gambet <tgambet@…>
Branch:
default
Message:

~ fixed another xss vulnerability

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • WebContent/WEB-INF/resources/templates/index.vm

    r1520 r1530  
    3939                                                <p> 
    4040                                                        <label title="$uri_title" for="ucn_uri"><span>$uri_label</span> 
    41                                                                 <input type="text" name="${param_prefix}uri" id="ucn_uri" size="45" value="#if($param_uri && $param_uri!='referer')$!param_uri#end"/> 
     41                                                                <input type="text" name="${param_prefix}uri" id="ucn_uri" size="45" value="#if($param_uri && $param_uri!='referer')$esc.xml($param_uri)#end"/> 
    4242                                                        </label> 
    4343                                                </p> 
     
    6868                                                <p class="instructions">$instruction-by-input</p> 
    6969                                                <p> 
    70                                                         <textarea id="ucn_text" name="${param_prefix}text" rows="12" cols="70">$!param_text</textarea> 
     70                                                        <textarea id="ucn_text" name="${param_prefix}text" rows="12" cols="70">$esc.xml($!param_text)</textarea> 
    7171                                                        #mimeList($current_task) 
    7272                                                </p>