Links containing "callto:" are wrongly altered, making those link types unusable with mimemail.
See attached patch.
Not sure if this is a bug report. Might be a feature request as well.
Thanks again for a great module that I use practically everywhere!
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | mimemail-callto.patch | 486 bytes | berliner |
| #4 | mimemail-callto.patch | 486 bytes | berliner |
| mimemail-callto.patch | 535 bytes | berliner |
Comments
Comment #1
sgabe commentedI think it would be a better solution to modify the pattern in the preg_match call like this:
!(mailto|callto|tel)(?=\:)!Comment #2
berliner commentedGood suggestion. Help me with the pattern. What's the
?=for?Wouldn't
!(mailto|callto|tel)\:!be sufficient?Comment #3
sgabe commentedThat would be a positive lookahead, which would exclude the colon from the match, though here it is unnecessary since we just searching without further processing. So
!(mailto|callto|tel)\:!is enough.Comment #4
berliner commentedOk, thanks for the explanation. I changed the patch.
Comment #5
sgabe commentedThank you, committed to both branches!
Comment #6
berliner commentedCool, that was quick, I just saw that there is a syntax error in the last patch (though in your commit you had corrected that).
For the sake of completeness and if anybody else stumbles upon this, I have corrected the patch.
Comment #7.0
(not verified) commentedfixed typos