]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/quickvote_controller.rb
Merge Justin
[selectricity-live] / app / controllers / quickvote_controller.rb
index a365171e0a57bcd6abaaf746749ea404bd00b43f..4783eb2d72ee79af31bd74f1e3de9112b02b7114 100644 (file)
@@ -15,7 +15,7 @@ class QuickvoteController < ApplicationController
      
       # store the candidate grabbed through ajax and stored in flash
       @quickvote.candidatelist = flash[:candlist]
      
       # store the candidate grabbed through ajax and stored in flash
       @quickvote.candidatelist = flash[:candlist]
-
+      @quickvote.description=CGI.escapeHTML(@quickvote.description)
       # try to save, if it fails, show the page again (the flash should
       # still be intact
       if @quickvote.save
       # try to save, if it fails, show the page again (the flash should
       # still be intact
       if @quickvote.save

Benjamin Mako Hill || Want to submit a patch?