Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bild-Titel: Anführungszeichen brechen Text ab. #1363

Closed
derastronaut opened this issue Feb 10, 2018 · 4 comments
Closed

Bild-Titel: Anführungszeichen brechen Text ab. #1363

derastronaut opened this issue Feb 10, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@derastronaut
Copy link

In Contao 4.4.13 und in der Demo (4.5.3) werden in einem Bild-Titel solche Eingaben, die ein Anführungszeichen " enthalten, ab diesem Punkt abgeschnitten.

Beispiel: Von Wurst bekomme ich "Durst", deshalb esse ich nur Käsekuchen.

Während der Satz im BE-Eingabefeld komplett bleibt, wird im FE nur Von Wurst bekomme ich angezeigt.

Den Fehler konnte ich im Text- und Bild-Element feststellen. Natürlich muss "Metadaten überschreiben" aktiviert werden, um den Bild-Titel auszufüllen. Alternativ-Text und Bild-Unterschrift sind nicht betroffen.

@Aybee
Copy link
Contributor

Aybee commented Feb 10, 2018

Kann ich nicht bestätigen. Gerade in der Online-Demo 4.5.3 getestet.

@derastronaut
Copy link
Author

Wie ich gerade herausgefunden habe, muss bei "Großansicht/Neues Fenster" ein Haken gesetzt werden.

contao-quote-error-01
contao-quote-error-02

@Aybee
Copy link
Contributor

Aybee commented Feb 10, 2018

Ah, ok, ich dachte zwar, das hätte ich auch getestet, war wohl nix.

Dann fehlt unter dieser Zeile hier
https://github.com/contao/core-bundle/blob/master/src/Resources/contao/library/Contao/Controller.php#L1684
noch diese Zeile

$objTemplate->linkTitle = \StringUtil::specialchars($objTemplate->linkTitle);

@leofeyer leofeyer added the bug label Feb 12, 2018
@leofeyer leofeyer added this to the 4.4.14 milestone Feb 12, 2018
@leofeyer leofeyer self-assigned this Feb 13, 2018
@leofeyer
Copy link
Member

Behoben in 98d13da.

@leofeyer leofeyer modified the milestones: 4.4.14, 4.4 May 14, 2019
leofeyer added a commit that referenced this issue Mar 27, 2020
Description
-----------

| Q                | A
| -----------------| ---
| Fixed issues     | Fixes #1363
| Docs PR or issue | -

Not sure if that is the best place to "fix" this though. We could also change it in the templates only.

Commits
-------

5262e647 Show "-" if the device family is "Other"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants