Windows Safari & DragonflyCMS

Dragonfly integration forum

Windows Safari & DragonflyCMS

Postby robojerk » Wed Jun 13, 2007 1:53 am

This fix will be included in the next version of DragonflyCMS but if you want to allow users that use the new Windows version of Safari here is what is needed to be done.

Fixes are seen here in the DF CVS. (look for Safari)

Open /includes/classes/security.php
Find
Code: Select all
            # Safari family: Safari, OmniWeb, Shiira, DEVONtech
            
'#^Mozilla/5\.0 \(Macintosh; U; (PPC|Intel) Mac OS X; [a-zA-Z\-]{2,5}\) AppleWebKit/.*? \(KHTML, like Gecko.*?\) ([a-zA-Z]+)/.*#e',  

Replace with:
Code: Select all
            # Safari family: Safari, OmniWeb, Shiira, DEVONtech
            
'#^Mozilla/5\.0 \((Macintosh|Windows); U; (PPC|Intel|Windows) (Mac|NT) (OS X|[0-9\.]{3}); [a-zA-Z\-]{2,5}\) AppleWebKit/.*? \(KHTML, like Gecko.*?\)(?:.*?[^Safari]+)? ([a-zA-Z]+)/.*#e'

Find
Code: Select all
            # Safari family
            
'Security::_set_data(\'\\2\', \'Mac\', \'Safari\', \'\', $data)'

Replace with:
Code: Select all
            # Safari family
            
'Security::_set_data(\'\\5\', \'\\3 \\4\', \'Safari\', \'\', $data)'
Last edited by robojerk on Wed Jun 13, 2007 4:30 am, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Windows Safari & DragonflyCMS

Postby zanix » Wed Jun 13, 2007 4:06 am

Fixed
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Windows Safari & DragonflyCMS

Postby robojerk » Wed Jun 13, 2007 4:27 am

small update (developer change not mine)
http://dragonflycms.org/cvs/html/includ ... =9.40-9.39

I changed my first post to reflect this change.

change
Code: Select all
            '#^Mozilla/5\.0 \((Macintosh|Windows); U; (PPC|Intel|Windows) (Mac|NT) (OS X|[0-9\.]{3}); [a-zA-Z\-]{2,5}\) AppleWebKit/.*? \(KHTML, like Gecko.*?\)(?:.*?[^Apple]+)? ([a-zA-Z]+)/.*#e'

to
Code: Select all
                '#^Mozilla/5\.0 \((Macintosh|Windows); U; (PPC|Intel|Windows) (Mac|NT) (OS X|[0-9\.]{3}); [a-zA-Z\-]{2,5}\) AppleWebKit/.*? \(KHTML, like Gecko.*?\)(?:.*?[^Safari]+)? ([a-zA-Z]+)/.*#e'
Last edited by robojerk on Wed Jun 13, 2007 4:30 am, edited 4 times in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 0 guests

cron