Changeset 256

Show
Ignore:
Timestamp:
04/25/08 02:27:12 (7 months ago)
Author:
eric.dumin..@gmail.com
Message:

Escaping queries for w3c compliance.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/picolena/templates/app/views/documents/show.html.haml

    r145 r256  
    33    %p 
    44      -if nothing_found? then 
    5         %span{:class=>'pagination'}=link_to_backup_search_engine(@query
     5        %span{:class=>'pagination'}=link_to_backup_search_engine(h(@query)
    66        =:nothing_found_for.l 
    7         %strong=@query 
     7        %strong=h(@query) 
    88        =show_time_needed(@time_needed) 
    99      -else 
    1010        %span{:class=>'pagination'}=should_paginate(@matching_documents, @query) 
    11         =describe_results(@matching_documents, @total_hits, @time_needed, @query
     11        =describe_results(@matching_documents, @total_hits, @time_needed, h(@query)
    1212= render :partial =>'document', :collection => @matching_documents 
  • trunk/lib/picolena/templates/app/views/layouts/application.html.haml

    r255 r256  
    55    %title 
    66      = :page_title.l 
    7       =' | '<<@query if @query 
     7      =' | '<<h(@query) if @query 
    88    = stylesheet_link_tag 'style' 
    99    %link{"href"=>"/images/zafh_net.png", "rel"=>"shortcut icon", "type"=>"image/vnd.microsoft.icon"}/