Changeset 2774

Show
Ignore:
Timestamp:
07/14/08 22:46:29 (2 months ago)
Author:
bchoate
Message:

Fixed 'unchanged' tmpl param.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-41/lib/MT/CMS/User.pm

    r2765 r2774  
    33use strict; 
    44 
    5 use MT::Util qw( format_ts relative_date is_url encode_url ); 
     5use MT::Util qw( format_ts relative_date is_url encode_url encode_html ); 
    66use MT::Author; 
    77 
     
    295295    my $status = $app->param('saved_status'); 
    296296    $param{"saved_status_$status"} = 1 if $status; 
    297     $param{unchanged} = $app->param('unchanged'); 
     297    $param{unchanged} = encode_html( $app->param('unchanged') ); 
    298298    $app->load_list_actions( 'author', \%param ); 
    299299    $param{page_actions} = 
  • branches/release-41/tmpl/cms/list_author.tmpl

    r1559 r2774  
    3737            id="unchanged" 
    3838            class="success"> 
    39             <__trans phrase="Some ([_1]) of the selected user(s) could not be re-enabled because they were no longer found in the external directory." params="<mt:var name="unchanged">"
     39            <__trans phrase="Some ([_1]) of the selected user(s) could not be re-enabled because they were no longer found in the external directory." params="<mt:var name="unchanged">" escape="html"
    4040        </mtapp:statusmsg> 
    4141    </mt:if> 
     
    131131        tableSelect = new TC.TableSelect( "author-listing-table" ); 
    132132        tableSelect.rowSelect = true; 
    133         setFilterCol(<mt:if name="filter">'<mt:var name="filter">'<mt:else>'none'</mt:if>);<mt:if name="filter"> 
    134         setFilterVal('<mt:var name="filter_val">'); 
     133        setFilterCol(<mt:if name="filter">'<mt:var name="filter" escape="js">'<mt:else>'none'</mt:if>);<mt:if name="filter"> 
     134        setFilterVal('<mt:var name="filter_val" escape="js">'); 
    135135    </mt:if> 
    136136    }