Bug 304260

Summary: URLs ending with ".jpg/" are still assumed to be images.
Product: [Unmaintained] telepathy Reporter: David Edmundson <kde>
Component: text-ui-message-filtersAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git-latest   
Target Milestone: Future   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Edmundson 2012-07-29 22:11:13 UTC
This url [1] tried inserting an image in a conversation, which obviously didn't work.

http://imageshack.us/f/245/te371810515mb2.jpg/
Comment 1 David Edmundson 2012-07-29 22:12:01 UTC
I seem to have forgotten English.
Comment 2 David Edmundson 2013-03-16 23:58:10 UTC
the URL code simply searches for contains ".jpg"  rather than making sure it's at the end.
Comment 3 David Edmundson 2013-03-20 22:30:42 UTC
Git commit 169f9a6ec38164c3a15b01001026e5ef4f2870bc by David Edmundson.
Committed on 20/03/2013 at 00:30.
Pushed by davidedmundson into branch 'master'.

Simplify extension matching in image filtering

This also fixes a bug in which the filter would match
urls that features .jpg or .png at any point in the filename not just at the end
REVIEW: 109596

M  +6    -10   filters/images/images-filter.cpp

http://commits.kde.org/telepathy-text-ui/169f9a6ec38164c3a15b01001026e5ef4f2870bc