-
-
Notifications
You must be signed in to change notification settings - Fork 213
True\Punycode auf Version 2 heben #8693
Comments
|
Bei mir läuft |
|
Steht hier anders: Wie im anderem Ticket schon geschrieben, benötigen andere Libs bereits die 2.x von Punycode, in Contao 3 nicht ganz das Problem wegen der getrennten composer.json, aber in Contao 4 dann ein Problem wegen Konflikte. Auf die aktuelle Version zu gehen wäre daher sinnvoll denke ich. |
|
Dann ist vermutlich die PHP-Dokumenation falsch. Ein kurzer Test funktioniert in allen PHP-Versionen von 5.6.0 bis 7.1.3: https://3v4l.org/LCEX3 |
|
Hatte mich auch schon gewundert, da ich auch deiner Meiung war bisher. |
|
Geändert in f8633ac. |
|
Planst du die Rücknahme auch für Contao 4? |
|
Für Contao 4.3 werden wir auf jeden Fall wieder Version 1 nutzen. Du hast ja gesehen, wie viele Probleme die Änderung gemacht hat! Für Contao 4.4 werde ich versuchen, die Version 2 einzubauen. |
|
Warum wird die Youtube ID eigentlich als URL geprüft? Ist doch gar keine? |
In Contao 4 kann die YouTube ID aus der URL extrahiert werden (in einem DCA save_callback). In Contao 3 ist das aber noch nicht der Fall. Aber selbst dort ist |
|
Fehler? Oder gibts ein Grund dafür? |
|
Zumindest bzgl. Youtube ist das kein Fehler von Punycode. |
|
Punycode verlangt ja vom Nutzer, das nur der Host Anteil übergeben wird. Das wird bei normalen URLs auch von Contao richtig getan (über Idna::encodeUrl) |
|
Dann könnte man das für Contao 4 ja ignorieren, da hier eh PHP >=5.5 vorausgesetzt wird und damit Contao selbst kein HTTP(S) voanstellen müsste. |
Das ist kein "damaliger Fehler" in parse_url. Contao und nicht PHP stellt das Schema voran, weil parse_url sonst unvollständige URLs als |
|
Ah, OK, da habe ich mich von PHP Handbuch in die Irre leiten lassen und nicht weiter nach geprüft. |
|
Bin gespannt wie du in der Idna Klasse erkennen willst, das es sich nicht um eine unvollständige URL handelt sondern um eine Youtube-ID. |
# Contao calendar bundle change log ### 4.3.8 (2017-04-24) * Correctly use the en dash in the calendar modules (see contao/core#8690). * Correctly support 64 character template names everywhere (see contao/core#6819). # Contao comments bundle change log ### 4.3.8 (2017-04-24) * Correctly support 64 character template names everywhere (see contao/core#6819). # Contao core bundle change log ### 4.3.9 (2017-04-25) * Revert the Punycode library changes (see contao/core#8693). ### 4.3.8 (2017-04-24) * Inline small images in protected folders in the file manager (see #636). * Correctly encode the URL in the DataContainer::switchToEdit() method (see #762). * Fix the parent view drag and drop in Firefox (see #666). * Correctly display the search results in the extended tree view (see #739). * Update the Punycode library to version 2 (see #748). * Fix the "delete file" button for non-admin users (see #764). * Prevent endless loops in the book navigation module (see contao/core#8665). * Limit the maximum size of dimensionless SVGs in the back end (see contao/core#8684). * Correctly support 64 character template names everywhere (see contao/core#6819). * Remove the UTF-8 BOM when combining files (see contao/core#8689). * Correctly move folders with an "@" in their name (see contao/core#8674). * Correctly redirect to the last page visited upon login (see contao/core#8632). ### 4.3.7 (2017-03-23) * Check the database connection in the WebsiteRootsConfigProvider class. * Fix the %2B conversion in the Controller::addToUrl() method. # Contao listing bundle change log ### 4.3.8 (2017-04-24) * Correctly support 64 character template names everywhere (see contao/core#6819). # Contao news bundle change log ### 4.3.8 (2017-04-24) * Correctly support 64 character template names everywhere (see contao/core#6819). # Contao newsletter bundle change log ### 4.3.8 (2017-04-24) * Correctly support 64 character template names everywhere (see contao/core#6819).
|
Genau das ist das Problem. Deswegen müssen wir überall wo wir |
Aus der Changelog:
Achtung, der Namespace ändert sich, daher müsste hier dieser angepasst werden:
https://github.com/contao/core/blob/master/system/modules/core/library/Contao/Idna.php#L13
in
use TrueBV\Punycode;in composer.json dann
true/punycode:~2.0Betrifft auch Contao 4, siehe contao/core-bundle#748
Nachtrag: Der PHP 7 Grund ist wohl nicht eindeutig, aber die Aktualisierung wäre trotzdem wünschenswert. Es gibt auch weitere Bugfixe wie "Cannot decode domain in uppercase"
The text was updated successfully, but these errors were encountered: