Bug 304260 - URLs ending with ".jpg/" are still assumed to be images.
Summary: URLs ending with ".jpg/" are still assumed to be images.
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: text-ui-message-filters (show other bugs)
Version: git-latest
Platform: unspecified Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-29 22:11 UTC by David Edmundson
Modified: 2013-03-20 22:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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