Special characters in international phone field like slashes throwing an InvalidArgumentException: The URI 'tel:0176/207987' is invalid

Created on 26 July 2023, 11 months ago
Updated 15 May 2024, about 1 month ago

Problem/Motivation

Special characters in international phone field like slash (other than hyphen and plus) throwing an InvalidArgumentException: The URI 'tel:0176/20785529' is invalid. You must use a valid URI scheme. in Drupal\Core\Url::fromUri() (line 282 of D:\xampp\htdocs\***\web\core\lib\Drupal\Core\Url.php).

Steps to reproduce

Create the International Phone field in user account settings(/admin/config/people/accounts/fields), Import the users with international phone value from csv file, here International phone data will be imported from csv with slashes added in csv as there is no validation for International Phone field during import via custom code. Now create the view as page using user fields and attach the data export(csv) to that view. Access the view page url and try to click on csv download that is attached to it, it throws a website encountered error.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇮🇳India kanchamk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024