From 954a85240a45b390e9b60a9ec30d7ba7f7921549 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 d5421f01f..19705185c 100644 --- a/SoObjects/SOGo/WOContext+SOGo.m +++ b/SoObjects/SOGo/WOContext+SOGo.m @@ -48,6 +48,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"]; }