ensures rel="nofollow" is added to all anchors if a page is retrieved with a SHA
This commit is contained in:
@@ -59,6 +59,11 @@ module Gollum
|
||||
'img' => {'href' => ['http', 'https', :relative]}
|
||||
}
|
||||
}
|
||||
HISTORY_SANITIZATION_OPTIONS = SANITIZATION_OPTIONS.merge(
|
||||
:add_attributes => {
|
||||
'a' => {'rel' => 'nofollow'}
|
||||
}
|
||||
)
|
||||
|
||||
class Error < StandardError; end
|
||||
class DuplicatePageError < Error
|
||||
|
||||
Reference in New Issue
Block a user