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

@ob_end_clean() does not work with Firefox #511

Open
bihor opened this issue Jul 26, 2017 · 2 comments
Open

@ob_end_clean() does not work with Firefox #511

bihor opened this issue Jul 26, 2017 · 2 comments

Comments

@bihor
Copy link

bihor commented Jul 26, 2017

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.

@dmitryd
Copy link
Owner

dmitryd commented Aug 6, 2017

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.

@bihor
Copy link
Author

bihor commented Aug 8, 2017

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.

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

No branches or pull requests

2 participants