This commit is contained in:
barisusakli
2014-09-24 13:50:43 -04:00
parent 4eabf41a21
commit 1a26cb0938

View File

@@ -1,6 +1,7 @@
'use strict';
var winston = require('winston'),
validator = require('validator'),
user = require('../user'),
translator = require('../../public/src/translator');
@@ -34,6 +35,7 @@ module.exports = function(Meta) {
};
Meta.title.parseFragment = function (urlFragment, language, callback) {
urlFragment = validator.escape(urlFragment);
var translated = ['', 'recent', 'unread', 'users', 'notifications'];
if (translated.indexOf(urlFragment) !== -1) {
if (!urlFragment.length) {