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

Kein Slash im virtuellen Pfad erlauben! #1

Open
pgerundt opened this issue Sep 15, 2017 · 3 comments
Open

Kein Slash im virtuellen Pfad erlauben! #1

pgerundt opened this issue Sep 15, 2017 · 3 comments
Assignees

Comments

@pgerundt
Copy link

pgerundt commented Sep 15, 2017

Hallo zusammen,
keine Ahnung, ob das hier jemand liest oder das Problem in der neuesten Version noch besteht, aber:
Wenn man (so doof ist wie ich und) in der 3.5.5er-Version in den Einstellungen als "Virtueller Pfad" zum Beispiel /email oder gar /email/test verwendet, funktioniert bei deaktiviertem JavaScript die Weiterleitung auf die korrekte Seite (natürlich) nicht mehr...
Eine triviale Lösung wäre, dem Feld aeo_virtual_path in der tl_settings.php einfach im eval eine rgxp zu verpassen, die keine Eingabe von Slashes erlaubt.

@pgerundt
Copy link
Author

Erfolgreich getestet:

tl_settings.php

$GLOBALS['TL_DCA']['tl_settings']['fields']['aeo_virtual_path'] = array
(
      'label'                   => &$GLOBALS['TL_LANG']['tl_settings']['aeo_virtual_path'],
      'default'                 => '',
      'exclude'                 => true,
      'inputType'               => 'text',
      'eval'                    => array('decodeEntities'=>true, 'mandatory'=>true, 'tl_class'=>'w50', 'rgxp'=>'alias')
);

@cgoIT
Copy link
Owner

cgoIT commented Sep 16, 2017

Hi,

danke. Ich schaue mir das bei Gelegenheit an. Ich bin leider im Moment etwas Land unter beruflich. Da komm ich leider zu viel weniger, als mir lieb ist...

@cgoIT cgoIT self-assigned this Sep 16, 2017
@pgerundt
Copy link
Author

Hi,

ja, ich kenne das Problem sehr gut. Falls Du doch mal 5 min Zeit hast: trage als virtuellen Pfad mal "/email" ein -> Weiterleitung kaputt.
Der obige Code-Schnippel, also das 'eval' 'rgxp'=>'alias' löst das Problem.

Danke,
Pascal

cgoIT added a commit that referenced this issue Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants