-
-
Notifications
You must be signed in to change notification settings - Fork 213
[3.5] Problem mit Umlauten bei E-Mail Adressen #8306
Comments
|
klingt ja wild... |
|
Bei der betroffenen Website läuft Contao 3.5.4. Wir prüfen mal, ob das Problem mit der Version 3.5.9 noch besteht. Ich gebe dir Recht, es ist eleganter die E-Mail-Adressen nicht im Punnycode-Format abzuspeichern. |
Ich nicht. Ich halte ein standardisiertes Format für eine sehr gute Idee, weil es viele Probleme gelöst hat, die wir vorher hatten (unter dem Suchbegriff "Punycode" sollte es Issues geben).
Ich kann das initiale Problem nicht reproduzieren. Wenn ich in der Onlinedemo die E-Mail-Adresse von Donna Evans auf d.eväns@example.com ändere, wird sie nach dem Speicher nicht im Punycode-Format ausgegeben. |
|
Behoben in 9f1e039. |
### 4.1.3 (2016-04-22) * Use data URIs for the image preview in the back end. * Use DIRECTORY_SEPARATOR to convert kernel.cache_dir into a relative path (see #464). * Always trigger the "isVisibleElement" hook (see contao/core#8312). * Do not change all sessions when switching users (see contao/core#8158). * Do not allow to close fieldsets with empty required fields (see contao/core#8300). * Make the path related properties of the File class binary-safe (see contao/core#8295). * Correctly validate and decode IDNA e-mail addresses (see contao/core#8306). * Skip forward pages entirely in the book navigation module (see contao/core#5074). * Do not add the X-Priority header in the Email class (see contao/core#8298). * Determine the search index checksum in a more reliable way (see contao/core#7652).

Hallo zusammen,
ich bin auf folgenden Bug gestoßen:
Hintergrund:
Über ein eigenes Skript werden Daten automatisch in die Mitgliedertabelle tl_member importiert. Manche E-Mail-Adressen enthalten Umlaute und diese werden vom Skript in Punnycode konvertiert und dann in die Datenbank geschrieben.
Problem:
Wenn man die Mitgliederverwaltung im Backend aufruft, wird in der Übersicht die E-Mail-Adresse im Punnycode-Format angezeigt, so wie diese auch in der Datenbank steht. Zwar nicht schön, aber ok.
Wird nun das Mitglied aufgerufen, steht im Feld E-Mail der Inhalt wieder im Unicode-Format drin.
Das Problem: Man kann nun allerdings den Mitglieder-Datensatz nicht mehr abspeichern, da sich Contao beschwert, dass die E-Mail-Adresse Umlaute enthält.
Lösung:
Die Lösung wäre, dass Contao die E-Mail-Adressen vor dem Speichern in das Punnycode-Format konvertiert und diese bei der Ansicht wieder in Unicode ausgibt.
Beispiel:

In der Liste Darstellung im Punnycode Format
Beim Bearbeiten: im Unicode Format

Beim Speichern -> Fehler

The text was updated successfully, but these errors were encountered: