From b0e063451f8ae9a74d1d0d4d7d65c8dbcb69f995 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sat, 28 Apr 2007 02:09:21 -0500 Subject: [PATCH] Sanitize Tweak Add 'cite' to the list of attributes whose values are URI's. --- lib/sanitize.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sanitize.rb b/lib/sanitize.rb index 4a816018..dcef7b1e 100644 --- a/lib/sanitize.rb +++ b/lib/sanitize.rb @@ -83,7 +83,7 @@ module Sanitize 'xlink:show', 'xlink:title', 'xlink:type', 'xml:base', 'xml:lang', 'xml:space', 'xmlns', 'xmlns:xlink', 'y', 'y1', 'y2', 'zoomAndPan'] - attr_val_is_uri = ['href', 'src', 'action', 'longdesc', 'xlink:href'] + attr_val_is_uri = ['href', 'src', 'cite', 'action', 'longdesc', 'xlink:href'] acceptable_css_properties = ['azimuth', 'background-color', 'border-bottom-color', 'border-collapse', 'border-color',