lib/sanitize/config/basic.rb in sanitize-1.0.0 vs lib/sanitize/config/basic.rb in sanitize-1.0.1

- old
+ new

@@ -1,7 +1,7 @@ #-- -# Copyright (c) 2008 Ryan Grove <ryan@wonko.com> +# Copyright (c) 2009 Ryan Grove <ryan@wonko.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -37,12 +37,13 @@ :add_attributes => { 'a' => {'rel' => 'nofollow'} }, :protocols => { - 'a' => {'href' => ['ftp', 'http', 'https', 'mailto']}, - 'blockquote' => {'cite' => ['http', 'https']}, - 'q' => {'cite' => ['http', 'https']} + 'a' => {'href' => ['ftp', 'http', 'https', 'mailto', + :relative]}, + 'blockquote' => {'cite' => ['http', 'https', :relative]}, + 'q' => {'cite' => ['http', 'https', :relative]} } } end end