Zuletzt bearbeitet vor einem Monat
von Margit Link-Rodrigue

Vorlage:Xml upload: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
Keine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
 
Zeile 1: Zeile 1:
{{Textbox|boxtype=important|header=Dateityp XML:{{Bsvs|bsvFrom=4.x+}}|text=Der Dateityp ''xml'' ist seit MW 1.39 auf der Blacklist und muss in ''LocalSettings.php'' erlaubt werden:
{{Textbox|boxtype=important|header=Dateityp XML:|text=Der Dateityp ''xml'' ist seit MW 1.39 auf der Blacklist und muss in ''LocalSettings.php'' erlaubt werden:
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
$GLOBALS['wgProhibitedFileExtensions'] = array_diff( $GLOBALS['wgProhibitedFileExtensions'] ?? [], [ 'xml' ] );
$GLOBALS['wgProhibitedFileExtensions'] = array_diff( $GLOBALS['wgProhibitedFileExtensions'] ?? [], [ 'xml' ] );
$GLOBALS['wgMimeTypeExclusions'] = array_diff( $GLOBALS['wgMimeTypeExclusions'] ?? [], [ 'application/xml', 'text/xml' ] );
$GLOBALS['wgMimeTypeExclusions'] = array_diff( $GLOBALS['wgMimeTypeExclusions'] ?? [], [ 'application/xml', 'text/xml' ] );
</syntaxhighlight>|icon=no}}
</syntaxhighlight>|icon=no}}

Aktuelle Version vom 1. August 2024, 09:10 Uhr

Dateityp XML:Der Dateityp xml ist seit MW 1.39 auf der Blacklist und muss in LocalSettings.php erlaubt werden:
$GLOBALS['wgProhibitedFileExtensions'] = array_diff( $GLOBALS['wgProhibitedFileExtensions'] ?? [], [ 'xml' ] );
$GLOBALS['wgMimeTypeExclusions'] = array_diff( $GLOBALS['wgMimeTypeExclusions'] ?? [], [ 'application/xml', 'text/xml' ] );