File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2555,6 +2555,16 @@ class GeneralConfig extends BaseConfig
2555
2555
* ```
2556
2556
* :::
2557
2557
*
2558
+ * Alternatively, this maybe set to a closure that accepts a [[\enshrined\svgSanitize\Sanitizer]] instance and returns
2559
+ * a [[\enshrined\svgSanitize\Sanitizer]] instance further customization.
2560
+ *
2561
+ * ```php
2562
+ * ->sanitizeSvgUploads(function(\enshrined\svgSanitize\Sanitizer $sanitizer): \enshrined\svgSanitize\Sanitizer {
2563
+ * $sanitizer->removeRemoteReferences(true);
2564
+ * return $sanitizer;
2565
+ * })
2566
+ * ```
2567
+ *
2558
2568
* @group Security
2559
2569
*/
2560
2570
public bool |Closure $ sanitizeSvgUploads = true ;
@@ -5953,16 +5963,6 @@ public function sameSiteCookieValue(?string $value): self
5953
5963
* ->sanitizeSvgUploads(false)
5954
5964
* ```
5955
5965
*
5956
- * Alternatively, this maybe set to a closure that accepts a [[\enshrined\svgSanitize\Sanitizer]] instance and returns
5957
- * a [[\enshrined\svgSanitize\Sanitizer]] instance further customization.
5958
- *
5959
- * ```php
5960
- * ->sanitizeSvgUploads(function(\enshrined\svgSanitize\Sanitizer $sanitizer): \enshrined\svgSanitize\Sanitizer {
5961
- * $sanitizer->removeRemoteReferences(true);
5962
- * return $sanitizer;
5963
- * })
5964
- * ```
5965
- *
5966
5966
* @group Security
5967
5967
* @param bool|Closure(Sanitizer):Sanitizer $value
5968
5968
* @return self
You can’t perform that action at this time.
0 commit comments