]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't double encode string
authorLukas Reschke <lukas@owncloud.com>
Sat, 10 Jan 2015 00:19:37 +0000 (01:19 +0100)
committerLukas Reschke <lukas@owncloud.com>
Sat, 10 Jan 2015 00:19:37 +0000 (01:19 +0100)
We already use `.text()` here which automatically properly encodes the string. Thus the string will be double-encoded and look ugly. (i.e. when you search for ">" you will see "No results found for &gt;")

Fixes itself.

apps/files/js/filelist.js

index e680ef4b3ed3290e9faf822442695d992af184de..2027f62aa025a6a474d906a1534c8463750d1859 100644 (file)
                                this.$el.find('#emptycontent').addClass('hidden');
                                if ( $('#searchresults').length === 0 || $('#searchresults').hasClass('hidden')) {
                                        this.$el.find('.nofilterresults').removeClass('hidden').
-                                               find('p').text(t('files', "No entries in this folder match '{filter}'", {filter:this._filter}));
+                                               find('p').text(t('files', "No entries in this folder match '{filter}'", {filter:this._filter},  null, {'escape': false}));
                                }
                        } else {
                                this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty);