carlos22 / carddav2fb

:notebook: A command-line PHP script allowing to import CardDAV-based VCards (e.g. from 'owncloud') to a phonebook in a AVM FRITZ!Box
The Unlicense
86 stars 67 forks source link

Plus sign in phone number not taken #1

Open mheidt opened 11 years ago

mheidt commented 11 years ago

If you are using the country code with a plus sign, it is not transfered to the fritzbox.

solution: private function _clear_phone_number($number) { return preg_replace("/[^0-9+]/", "", $number); }

carlos22 commented 11 years ago

Maybe it would be better to replace the plus sign (+) with 00, which should be equal.