From bb9e8c03481e4109586ac95d26bdc3870fb2b825 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 11 Sep 2014 16:11:26 -0400 Subject: [PATCH] Remove trailing slash from template theme name --- SoObjects/SOGo/WOContext+SOGo.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SoObjects/SOGo/WOContext+SOGo.m b/SoObjects/SOGo/WOContext+SOGo.m index 35e3a9d90..1b5c0692a 100644 --- a/SoObjects/SOGo/WOContext+SOGo.m +++ b/SoObjects/SOGo/WOContext+SOGo.m @@ -46,6 +46,11 @@ if ([theme length] > 0) { + if ([theme hasSuffix: @"/"]) + { + // Remove trailing slash + theme = [theme substringToIndex: [theme length] - 1]; + } [languages addObject: [NSString stringWithFormat: @"theme_%@", theme]]; [self setObject: theme forKey: @"theme"]; }