[TYPO3-english] TYPO3 behind a CDN and checkValidBrowserOrDie() ("Your browser version looks incompatible with this TYPO3 version")
typo3 at 2016.schams.net
Fri Jan 8 04:56:46 CET 2016
Ok, by setting my own custom user-agent string in file
the BE login works (accessing the BE via the CDN):
$userAgent = 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
$GLOBALS['CLIENT']['BROWSER'] = $userAgent;
Unfortunately, this is not the only spot in TYPO3 where the
is checked by accessing variable $_SERVER['HTTP_USER_AGENT']. The next
problem is that the RTE is not loaded, if the user-agent is "AWS
If I add the following line to AdditionalConfiguration.php, the RTE
$_SERVER['HTTP_USER_AGENT'] = $userAgent;
However, overwriting *this* variable is a bad idea I suspect.
Is there any chance to force the RTE to load, no matter which user-agent
string the browser sent?
BTW: an update to 7 is sadly not an option at this point in time.
On 2015-12-23 03:10, Jigal van Hemert wrote:
> On 22/12/2015 13:01, Michael Schams wrote:
>> Nevertheless I wonder what the purpose of the browser check for the BE
>> is? :-) I mean, we are not testing against a specific version, but
>> against a string such as "IE". If someone tries to access the BE of
>> with IE6, he passes the test (but we dropped the support for IE6 a
>> time ago). If someone tries to access the BE with an up-to-date
>> and the TYPO3 instance is behind a proxy (e.g. a CDN), the test likely
>> fails. So what's the point of checkValidBrowserOrDie()?
> It's probably very old code. Anyways, it's been removed in 7LTS:
> So, another solution would be to upgrade to 7 :)
More information about the TYPO3-english