github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

kete / kete

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 36
    • 2
  • Source
  • Commits
  • Network (2)
  • Downloads (2)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (4)
    • 1-1-stable
    • 1-2-stable
    • excel_bulk_import_for_1_2_stable
    • master ✓
  • Tags (2)
    • v1.2_FREEZE
    • v1.1_FREEZE
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material. — Read more

  cancel

http://kete.net.nz/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

adding ability to turn off including creation date as dc:date element in 
search record, not useful for sites that have mainly archival materials 
walter (author)
Tue Feb 02 15:06:30 -0800 2010
commit  2b821fd52161412d7f0a7b7e358f62b82ec978dc
tree    6c2a716ce79b03d46cb53c6c2b3e48b3f4cbc489
parent  96536978dc044ba59a536be032f2b0a775401555
kete / vendor / plugins / acts_as_sanitized
name age
history
message
..
file README Sun Jan 13 23:23:10 -0800 2008 adding acts_as_sanitized which i have modified ... [walter]
file Rakefile Sun Jan 13 23:23:10 -0800 2008 adding acts_as_sanitized which i have modified ... [walter]
file init.rb Sun Jan 13 23:23:10 -0800 2008 adding acts_as_sanitized which i have modified ... [walter]
file install.rb Sun Jan 13 23:23:10 -0800 2008 adding acts_as_sanitized which i have modified ... [walter]
directory lib/ Wed Mar 05 17:17:07 -0800 2008 merging bug fixes from 1-0-stable branch git-s... [walter]
directory tasks/ Sun Jan 13 23:23:10 -0800 2008 adding acts_as_sanitized which i have modified ... [walter]
directory test/ Sun Jan 13 23:23:10 -0800 2008 adding acts_as_sanitized which i have modified ... [walter]
vendor/plugins/acts_as_sanitized/README
= Acts As Sanitized

Cleans up text data before it hits your database and, eventually, your users.
The goal is to reduce Cross-Site Scripting (XSS) attacks. Install and forget.

The plugin can figure out which fields it needs to sanitize, or you can 
specify fields manually.  The former is highly recommended.  Schemas change.

== Usage

If you'd like the plugin to figure out which fields to sanitize:

 class Comment < ActiveRecord::Base
   acts_as_sanitized
 end
 
If you'd like to specify the fields to sanitize:

 class Entry < ActiveRecord::Base
   acts_as_sanitized :fields => [ :title, :body ]
 end
 
If you'd like to strip all HTML tags, not just script and form:

 class Review < ActiveRecord::Base
   acts_as_sanitized :strip_tags => true
 end
 
If you'd like to use all the fancy options at once:

 class Message < ActiveRecord::Base
   acts_as_sanitized :fields => [ :content ], :strip_tags => true
 end
 
== Known Issues

- 12 Jan 2007: test schema is generated twice when running tests.  Not harmful.

== Credits

Written by Alex Payne of http://www.al3x.net.

Much was learned from reading Chris Wanstrath's acts_as_textiled and the Rails
core team's acts_as_taggable.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server