From f4dbb41e2a25c864ab2accc7aa4b414a93be3418 Mon Sep 17 00:00:00 2001 From: manuroe Date: Wed, 13 Apr 2016 17:10:35 +0200 Subject: [PATCH] Universal link: "" query params are now nil --- Vector/AppDelegate.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Vector/AppDelegate.m b/Vector/AppDelegate.m index 8609018fd..99ce68e5b 100644 --- a/Vector/AppDelegate.m +++ b/Vector/AppDelegate.m @@ -916,10 +916,13 @@ // Get the parameter value NSString *value = [[keyValue componentsSeparatedByString:@"="] objectAtIndex:1]; - value = [value stringByReplacingOccurrencesOfString:@"+" withString:@" "]; - value = [value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; + if (value.length) + { + value = [value stringByReplacingOccurrencesOfString:@"+" withString:@" "]; + value = [value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; - queryParams[key] = value; + queryParams[key] = value; + } } }