gzip opera quick fix

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
User avatar
icex
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Nov 14, 2008 12:45 pm
Location: Romania
Contact:

gzip opera quick fix

Post by icex » Fri Nov 14, 2008 1:05 pm

Hi everyone, I have some issues running Joomla 1.5 with gzip enabled and Opera browser. I did a little reasearch and I found a quick fix for everyone interested:

Open libraries/joomla/environment/response.php
Go to line 263 or function _clientEncoding()
Replace the line

Code: Select all

if (!isset($_SERVER['HTTP_ACCEPT_ENCODING'])) {
with

Code: Select all

if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) || (strpos($_SERVER['HTTP_USER_AGENT'],'Opera') !== false)) {
Hope this solves everyone some headaches :)
There's no place like 127.0.0.1...
http://www.ziarelive.ro
http://www.wallpapermania.eu

User avatar
ianmac
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4784
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: gzip opera quick fix

Post by ianmac » Fri Nov 14, 2008 6:11 pm

icex wrote:Hi everyone, I have some issues running Joomla 1.5 with gzip enabled and Opera browser. I did a little reasearch and I found a quick fix for everyone interested:

Open libraries/joomla/environment/response.php
Go to line 263 or function _clientEncoding()
Replace the line

Code: Select all

if (!isset($_SERVER['HTTP_ACCEPT_ENCODING'])) {
with

Code: Select all

if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) || (strpos($_SERVER['HTTP_USER_AGENT'],'Opera') !== false)) {
Hope this solves everyone some headaches :)
Can you please add this to the 1.5 bug tracker and include the patch so we can review it?

Ian

User avatar
icex
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Nov 14, 2008 12:45 pm
Location: Romania
Contact:

Re: gzip opera quick fix

Post by icex » Fri Nov 14, 2008 11:16 pm

Sure. ID 13728 :) I should have posted it there first.

Regards,
Bogdan
There's no place like 127.0.0.1...
http://www.ziarelive.ro
http://www.wallpapermania.eu

wtfbrb
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Oct 15, 2007 3:47 am

Re: gzip opera quick fix

Post by wtfbrb » Tue Feb 24, 2009 12:17 am

Still isn't fixed in 1.5.9, any chance this fix will just be included in 1.5.10?


Locked

Return to “Joomla! 1.5 Coding”