diff options
| -rw-r--r-- | app/views/search/index.html.erb | 4 | ||||
| -rw-r--r-- | config/environment.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index 9824b8f..ada6c61 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | <% if params[:search_term] %> | 1 | <% if params[:search_term] %> |
| 2 | <h2>Suchergebnisse für Suchbegriff: <%=h params[:search_term] %></h2> | 2 | <h2>Suchergebnisse für Suchbegriff: <%=h sanitize(params[:search_term]) %></h2> |
| 3 | <% end %> | 3 | <% end %> |
| 4 | 4 | ||
| 5 | <%= | 5 | <%= |
| @@ -8,4 +8,4 @@ | |||
| 8 | :collection => @results, | 8 | :collection => @results, |
| 9 | :as => :node | 9 | :as => :node |
| 10 | ) | 10 | ) |
| 11 | %> \ No newline at end of file | 11 | %> |
diff --git a/config/environment.rb b/config/environment.rb index cdc6b28..6257591 100644 --- a/config/environment.rb +++ b/config/environment.rb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Be sure to restart your server when you modify this file | 1 | # Be sure to restart your server when you modify this file |
| 2 | 2 | ||
| 3 | # Specifies gem version of Rails to use when vendor/rails is not present | 3 | # Specifies gem version of Rails to use when vendor/rails is not present |
| 4 | RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION | 4 | RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION |
| 5 | 5 | ||
| 6 | # Bootstrap the Rails environment, frameworks, and default configuration | 6 | # Bootstrap the Rails environment, frameworks, and default configuration |
| 7 | require File.join(File.dirname(__FILE__), 'boot') | 7 | require File.join(File.dirname(__FILE__), 'boot') |
| @@ -59,4 +59,4 @@ end | |||
| 59 | require 'awesome_patch' | 59 | require 'awesome_patch' |
| 60 | 60 | ||
| 61 | ExceptionNotifier.exception_recipients = %w(hukl@berlin.ccc.de) | 61 | ExceptionNotifier.exception_recipients = %w(hukl@berlin.ccc.de) |
| 62 | ExceptionNotifier.sender_address = %("CCCMS Error" <error@ccc.de>) \ No newline at end of file | 62 | ExceptionNotifier.sender_address = %("CCCMS Error" <error@ccc.de>) |
