Skip to content

Commit

Permalink
Item14333: Make it possible for plugins to disable SafeWikiPlugin
Browse files Browse the repository at this point in the history
Useful for rest-calls. The plugins have to make insure the safeness of
the content themselves!

Ticket: #3533
Author:    Stephan Osthold <osthold@modell-aachen.de>
Date:      Wed Jan 22 14:33:44 2014 +0100
  • Loading branch information
Stephan Osthold authored and gac410 committed Feb 28, 2017
1 parent 637574c commit 24d350a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Foswiki/Plugins/SafeWikiPlugin.pm
Expand Up @@ -58,6 +58,7 @@ sub completePageHandler {
#my($html, $httpHeaders) = @_;

return unless $_[1] =~ m#^Content-type: text/html#mi;
return if Foswiki::Func::getContext()->{'OverrideSafeWikiPlugin'};

# PDF generation fails if we filter it, so don't do that
if ( exists $Foswiki::cfg{Plugins}{GenPDFPrincePlugin}{Enabled}
Expand Down

0 comments on commit 24d350a

Please sign in to comment.