Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Outlook delimiter #1

@wilmy048

Description

@wilmy048

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions