Completed
Push — master ( 0fca81...82a583 )
by Roeland
11:23
created
lib/public/AppFramework/Http/ContentSecurityPolicy.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -42,52 +42,52 @@
 block discarded – undo
42 42
  * @deprecated 14.0.0 Use one of our stricter CSP policies
43 43
  */
44 44
 class ContentSecurityPolicy extends EmptyContentSecurityPolicy {
45
-	/** @var bool Whether inline JS snippets are allowed */
46
-	protected $inlineScriptAllowed = false;
47
-	/** @var bool Whether eval in JS scripts is allowed */
48
-	protected $evalScriptAllowed = false;
49
-	/** @var array Domains from which scripts can get loaded */
50
-	protected $allowedScriptDomains = [
51
-		'\'self\'',
52
-	];
53
-	/**
54
-	 * @var bool Whether inline CSS is allowed
55
-	 * TODO: Disallow per default
56
-	 * @link https://github.com/owncloud/core/issues/13458
57
-	 */
58
-	protected $inlineStyleAllowed = true;
59
-	/** @var array Domains from which CSS can get loaded */
60
-	protected $allowedStyleDomains = [
61
-		'\'self\'',
62
-	];
63
-	/** @var array Domains from which images can get loaded */
64
-	protected $allowedImageDomains = [
65
-		'\'self\'',
66
-		'data:',
67
-		'blob:',
68
-	];
69
-	/** @var array Domains to which connections can be done */
70
-	protected $allowedConnectDomains = [
71
-		'\'self\'',
72
-	];
73
-	/** @var array Domains from which media elements can be loaded */
74
-	protected $allowedMediaDomains = [
75
-		'\'self\'',
76
-	];
77
-	/** @var array Domains from which object elements can be loaded */
78
-	protected $allowedObjectDomains = [];
79
-	/** @var array Domains from which iframes can be loaded */
80
-	protected $allowedFrameDomains = [];
81
-	/** @var array Domains from which fonts can be loaded */
82
-	protected $allowedFontDomains = [
83
-		'\'self\'',
84
-	];
85
-	/** @var array Domains from which web-workers and nested browsing content can load elements */
86
-	protected $allowedChildSrcDomains = [];
45
+    /** @var bool Whether inline JS snippets are allowed */
46
+    protected $inlineScriptAllowed = false;
47
+    /** @var bool Whether eval in JS scripts is allowed */
48
+    protected $evalScriptAllowed = false;
49
+    /** @var array Domains from which scripts can get loaded */
50
+    protected $allowedScriptDomains = [
51
+        '\'self\'',
52
+    ];
53
+    /**
54
+     * @var bool Whether inline CSS is allowed
55
+     * TODO: Disallow per default
56
+     * @link https://github.com/owncloud/core/issues/13458
57
+     */
58
+    protected $inlineStyleAllowed = true;
59
+    /** @var array Domains from which CSS can get loaded */
60
+    protected $allowedStyleDomains = [
61
+        '\'self\'',
62
+    ];
63
+    /** @var array Domains from which images can get loaded */
64
+    protected $allowedImageDomains = [
65
+        '\'self\'',
66
+        'data:',
67
+        'blob:',
68
+    ];
69
+    /** @var array Domains to which connections can be done */
70
+    protected $allowedConnectDomains = [
71
+        '\'self\'',
72
+    ];
73
+    /** @var array Domains from which media elements can be loaded */
74
+    protected $allowedMediaDomains = [
75
+        '\'self\'',
76
+    ];
77
+    /** @var array Domains from which object elements can be loaded */
78
+    protected $allowedObjectDomains = [];
79
+    /** @var array Domains from which iframes can be loaded */
80
+    protected $allowedFrameDomains = [];
81
+    /** @var array Domains from which fonts can be loaded */
82
+    protected $allowedFontDomains = [
83
+        '\'self\'',
84
+    ];
85
+    /** @var array Domains from which web-workers and nested browsing content can load elements */
86
+    protected $allowedChildSrcDomains = [];
87 87
 
88
-	/** @var array Domains which can embed this Nextcloud instance */
89
-	protected $allowedFrameAncestors = [];
88
+    /** @var array Domains which can embed this Nextcloud instance */
89
+    protected $allowedFrameAncestors = [];
90 90
 
91
-	/** @var array Domains from which web-workers can be loaded */
92
-	protected $allowedWorkerSrcDomains = [];
91
+    /** @var array Domains from which web-workers can be loaded */
92
+    protected $allowedWorkerSrcDomains = [];
93 93
 }
Please login to merge, or discard this patch.