typo3-realurl icon indicating copy to clipboard operation
typo3-realurl copied to clipboard

@ob_end_clean() does not work with Firefox

Open bihor opened this issue 6 years ago • 2 comments

There are some @ob_end_clean(); in the file Classes/Decoder/UrlDecoder.php but they causes an problem with the Firefox browser. Nothing happens when the Firefox browser arrives at that line. There will be no output and no redirect at all. When I delete that lines, the redirects will work again. No problem with Chrome or Edge browser. Please check this bug and fix it.

Why is there no ob_start when you use ob_end_clean? http://php.net/manual/en/function.ob-end-clean.php The output buffer must be started by ob_start() with PHP_OUTPUT_HANDLER_CLEANABLE and PHP_OUTPUT_HANDLER_REMOVABLE flags. Otherwise ob_end_clean() will not work.

bihor avatar Jul 26 '17 14:07 bihor

Why is there no ob_start when you use ob_end_clean?

Because ob_start() is done by TYPO3 and calling ob_end_clean() without ob_start() simply has no effect (noop).

I cannot reproduce the issue.

Do you use http/2.0 with nginx? In that case you should try the development version because there are issues with FF+http/2.0+nginx, which were fixed already.

dmitryd avatar Aug 06 '17 19:08 dmitryd

No, its a Mittwald server with Apache, https and PHP 7.0.20. This is an wrong example link: https://www.myserver.de/meldungen/meldung/News/detail/jemen-gibt-es-nicht/?custom1=42 Maybe there are special reasons. I will test the new version when it is in the TER.

bihor avatar Aug 08 '17 08:08 bihor