Erweiterung:NativeSvgHandler
Browser support for rendering SVGs varies widely, so the appearance of an SVG cannot be guaranteed to be consistent for all viewers. Don't rely on SVGs appearing the same for all viewers. |
![]() Freigabestatus: stabil |
|
---|---|
Einbindung | Medien |
Beschreibung | Serves SVG images directly to clients |
Autor(en) | alistair3149Diskussion |
Letzte Version | 1.4.0 |
Kompatibilitätspolitik | Der Master behält die Abwärtskompatibilität bei. |
MediaWiki | 1.35+ |
Datenbankänderungen | Nein |
Composer | mediawiki/native-svg-handler |
Lizenz | GNU General Public License 3.0 |
Herunterladen | |
Quarterly downloads | 300 (Ranked 37th) |
Übersetze die NativeSvgHandler-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
The NativeSvgHandler extension allows SVG files to be served directly to clients for client-side rendering.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
NativeSvgHandler
im Ordnerextensions/
ablegen. - Folgenden Code am Ende der
LocalSettings.php
einfügen:wfLoadExtension( 'NativeSvgHandler' );
- Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Sicherheit
NativeSvgHandler serves SVG directly to clients through image tags, which is not vulnerable to XSS attack. XSS attacks are only relevant when it is accessed directly through original file on the file page, which is neither in the scope nor in control of this extension.
See also
$wgSVGNativeRendering
(eingeführt in 1.41)
Diese Erweiterung ist in den folgenden Paketen und/oder WikiFarmen beinhalten: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |