-
-
Notifications
You must be signed in to change notification settings - Fork 213
Fehlerhafte SVG-Datei führt zu PHP Error bei Aufruf der Dateiverwaltung #8470
Comments
|
Ja klar, die Datei ist ja auch fehlerhaft. Was sollte Deiner Meinung nach passieren? |
|
Ein Zugriff auf die Dateiverwaltung ist wegen des Fatal Error nicht mehr möglich. (Also nicht nur das Bearbeiten der spezifischen Datei sondern die gesamte Dateiverwaltung!) Es sollte zuerst die Datei auf Validität geprüft werden bevor Operationen durchgeführt werden, die zu einem PHP Error führen. Man könnte auch nach Alternativen für die verwendeten Funktionen sehen, die eine Fehlerhandling mit Exceptions haben, damit man diese abfangen könnte. |
|
Errorneous JPGs cause fatal errors as well currently, don't they? |
|
The fatal is a follow up error. We have to check if the resource is null before using it. |
|
Der Rückgabewert der Funktion gibt auch Auskunft darüber, ob Fehler aufgetreten sind, sodass eine Lösung wie folgt aussehen könnte: http://php.net/manual/en/domdocument.loadxml.php#refsect1-domdocument.loadxml-returnvalues |
|
Geändert in d59ea0e. |
### 4.2.4 (2016-09-21) * Handle special character passwords in the "close account" module (see contao/core#8455). * Handle broken SVG files in the Image and File class (see contao/core#8470). * Reduce the maximum field length by the file extension length (see contao/core#8472). * Fall back to the field name if there is no label (see contao/core#8461). * Do not assume NULL by default for binary fields (see contao/core#8477). * Correctly render the diff view if not the latest version is active (see contao/core#8481). * Update the list of countries and languages (see contao/core#8453). * Correctly set up the MooTools CDN URL (see contao/core#8458). * Also check the URL length when determining the search URL (see contao/core#8460). * Only regenerate the session ID upon login.
Eine fehlerhafte SVG-Datei führt zu einem PHP Error bei Aufruf der Dateiverwaltung. Zur Reproduktion beispielsweise das letzte
>in einer SVG-Datei löschen.The text was updated successfully, but these errors were encountered: