Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case problem with begin and end tags #35

Open
surruk51 opened this issue Apr 17, 2018 · 0 comments
Open

Case problem with begin and end tags #35

surruk51 opened this issue Apr 17, 2018 · 0 comments

Comments

@surruk51
Copy link

If the vcf file contains
begin:vcard
end:vcard

(e.g as exported by Thunderbird) instead of

BEGIN:VCARD
END:VCARD

it fails because it tries to split the file using:
$this -> RawData = explode( 'BEGIN:VCARD', $this -> RawData);

This can be fixed by changing line 132 of vcard.php to
$this -> RawData = preg_split('{^BEGIN:VCARD}miS', $this -> RawData);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant