-
Notifications
You must be signed in to change notification settings - Fork 1
Outlook delimiter #1
Description
Although RFC specification for email list clearly specifies comma delimiter, Windows/Microsoft had to be different and use ';'. So, you should add to your code a check if the operating system is Windows and of it is, use the ";" as a delimiter, otherwise use ",". Here is the code for it:
In a separate file have a 'detector' and then by including the file, you can use the values in the '$os' variable to determine the operating system.
$agent = $_SERVER['HTTP_USER_AGENT'];
if(preg_match('/Linux/',$agent)) $os = 'Linux';
elseif(preg_match('/Win/',$agent)) $os = 'Windows';
elseif(preg_match('/Mac/',$agent)) $os = 'Mac';
else $os = 'UnKnown';
I have tried doing it in your plugin, but for some reason I can't get this to display the ; even though it is detecting windows OS, when I output the value of $os variable. Weird.