aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/flickr/content/RssModel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/flickr/content/RssModel.qml')
-rw-r--r--examples/declarative/flickr/content/RssModel.qml9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/declarative/flickr/content/RssModel.qml b/examples/declarative/flickr/content/RssModel.qml
index 7ef780f2ac..ba1cf7e62d 100644
--- a/examples/declarative/flickr/content/RssModel.qml
+++ b/examples/declarative/flickr/content/RssModel.qml
@@ -2,7 +2,7 @@
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Contact: http://www.qt-project.org/
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
@@ -45,12 +45,9 @@ import QtQuick.XmlListModel 2.0
XmlListModel {
property string tags : ""
- function commasep(x)
- {
- return x.replace(' ',',');
- }
+ function encodeTags(x) { return encodeURIComponent(x.replace(' ',',')); }
- source: "http://api.flickr.com/services/feeds/photos_public.gne?"+(tags ? "tags="+commasep(tags)+"&" : "")+"format=rss2"
+ source: "http://api.flickr.com/services/feeds/photos_public.gne?"+(tags ? "tags="+encodeTags(tags)+"&" : "")+"format=rss2"
query: "/rss/channel/item"
namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";"