This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Enable SMS links by default #15948
Open
Description
I'm submitting a ...
- bug report
- feature request
- other (Please do not submit support requests here (see above))
Current behavior:
Currently, by default, sms links like sms:+15555555555 have "unsafe" prepended to them. People who want sms links in their Angular app have to add a line like this:
$compileProvider.aHrefSanitizationWhitelist(
/^\s*(https?|ftp|mailto|tel|sms|file):/);
Expected / new behavior:
SMS links would be displayed by default.
Minimal reproduction of the problem with instructions:
http://plnkr.co/edit/c3PIZnwxj5aZrkzrpC02?p=preview
Angular version: 1.5.9
Browser: all
Anything else:
This would be trivial to fix: just replace the default with the regexp above. This would enable sms: links and have no downside I can see. However, I don't understand the security issue that motivated href sanitization in the first place, so I wanted to check that this makes sense before sending a PR.