Browse Source

https://github.com/nextcloud/external/issues/242

marinofaggiana 3 years ago
parent
commit
c000588b13

+ 1 - 1
Nextcloud.xcodeproj/project.pbxproj

@@ -2831,7 +2831,7 @@
 			repositoryURL = "https://github.com/nextcloud/ios-communication-library/";
 			requirement = {
 				kind = revision;
-				revision = 13c3caba4e8b0b772d6c7b7aa46281afb0e35933;
+				revision = 653af65b02be51b14eaeed992015949c6b465f30;
 			};
 		};
 		F7C4D88B2534887E00C142DA /* XCRemoteSwiftPackageReference "Parchment" */ = {

+ 1 - 1
Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -24,7 +24,7 @@
         "repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
         "state": {
           "branch": null,
-          "revision": "13c3caba4e8b0b772d6c7b7aa46281afb0e35933",
+          "revision": "653af65b02be51b14eaeed992015949c6b465f30",
           "version": null
         }
       },

+ 2 - 2
iOSClient/More/NCMore.swift

@@ -210,10 +210,10 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
         if NCBrandOptions.shared.disable_more_external_site == false {
             if let externalSites = NCManageDatabase.shared.getAllExternalSites(account: appDelegate.account) {
                 for externalSite in externalSites {
-                    if (externalSite.type == "link" && externalSite.name != "" && externalSite.url != "") {
+                    if (externalSite.type == "link" && externalSite.name != "" && externalSite.url != ""), let urlEncoded = externalSite.url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) {
                         item = NCCommunicationExternalSite()
                         item.name = externalSite.name
-                        item.url = externalSite.url
+                        item.url = urlEncoded
                         item.icon = "network"
                         externalSiteMenu.append(item)
                     }