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

MFormOutputHelper::prepareCustomLink() erkennt keine internen Links #370

Closed
goldfoot opened this issue Feb 20, 2025 · 1 comment · Fixed by #372
Closed

MFormOutputHelper::prepareCustomLink() erkennt keine internen Links #370

goldfoot opened this issue Feb 20, 2025 · 1 comment · Fixed by #372
Labels

Comments

@goldfoot
Copy link

Description / Beschreibung
Beim Aufbereiten des Outputs eines custom_link Feldes nutze ich die Funktion FriendsOfRedaxo\MForm\Utils\MFormOutputHelper::prepareCustomLink(['link' => $link]). Beinhaltet $link einen internen Link (redaxo://), funktioniert die Aufbereitung nicht.

Das Problem: In der Funktion prepareCustomLink() wird auf rex:// geprüft und nicht auf redaxo://. Das hat zur Folge, dass der Link fälschlicher Weise als external zurückgegeben wird obwohl es eine interne Verlinkung ist.

Affected versions / Verwendete Versionen

REDAXO
Version 5.18.1
PHP
Version 8.4.3
OPcache yes
Xdebug no
Database
Version MySQL 5.7.42
Character set utf8mb4
Warning Die verwendete MySQL-Version 5.7.42 wird nicht mehr vom Hersteller gepflegt und sollte aktualisiert werden.
Server
OS Linux
SAPI fpm-fcgi
Webserver Apache/2.4.62
Request
Browser Chrome/132.0.0.0
Protocol HTTP/1.1
HTTPS yes
Packages
backup 2.9.1
be_style 3.5.0
be_style/redaxo 3.5.0
developer 3.9.2
install 2.12.1
maintenance 3.2.2
mblock 3.4.13
media_manager 2.17.0
mediapool 2.15.1
metainfo 2.11.0
mform 8.0.5
multiupload 2.1.3
navbuilder 1.0.6
phpmailer 2.14.1
project 1.2.2
search_it 6.12.2
search_it/documentation 6.6.6
structure 2.17.2
structure/content 2.17.2
tinymce4 1.2.1
users 2.11.0
yform 4.2.1
yform/email 4.2.1
yform/manager 4.2.1
yform/tools 4.2.1
yform_spam_protection 1.2.5
yrewrite 2.10.0

Did it whoops? / Whoops erhalten?
Nein

@goldfoot
Copy link
Author

Ich bin mir nicht sicher, ob überhaupt auf rex:// geprüft werden muss, da so lediglich interne Pfade angegeben werden, und keine internen Links. Oder irre ich mich?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants