diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-26 20:46:55 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-26 20:46:55 +0200 |
commit | 303c4d1d267f8b53a2604b51314ea79053e62635 (patch) | |
tree | f8870d92d221ba9d746375351cb502172af87975 /src/websnap.cpp | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
parent | Merge commit 'refs/merge-requests/191' of git://gitorious.org/rekonq/mainline... (diff) | |
download | rekonq-303c4d1d267f8b53a2604b51314ea79053e62635.tar.xz |
Merge branch 'm2_191'
Diffstat (limited to 'src/websnap.cpp')
-rw-r--r-- | src/websnap.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/websnap.cpp b/src/websnap.cpp index 1405fb6e..afa08c64 100644 --- a/src/websnap.cpp +++ b/src/websnap.cpp @@ -185,18 +185,7 @@ QString WebSnap::imagePathFromUrl(const KUrl &url) { QUrl temp = QUrl(url.url()); QString name = temp.toString(QUrl::RemoveScheme | QUrl::RemoveUserInfo | QUrl::StripTrailingSlash); - - // TODO learn Regular Expressions :) - // and implement something better here.. - name.remove('/'); - name.remove('&'); - name.remove('.'); - name.remove('-'); - name.remove('_'); - name.remove('?'); - name.remove('='); - name.remove('+'); - + name.remove(QRegExp(QL1S("[&+=_?./-]"))); return KStandardDirs::locateLocal("cache", QString("thumbs/") + name + ".png", true); } |