X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/c6b553f635c7cbb4f21d41a6fa82e204447c16cf..c75e5aa71cf93e677e5abb95cb3d9c1f45a64ea7:/src/eu/alefzero/webdav/WebdavUtils.java diff --git a/src/eu/alefzero/webdav/WebdavUtils.java b/src/eu/alefzero/webdav/WebdavUtils.java index 8e7c07b6..132a1f92 100644 --- a/src/eu/alefzero/webdav/WebdavUtils.java +++ b/src/eu/alefzero/webdav/WebdavUtils.java @@ -1,10 +1,10 @@ /* ownCloud Android client application * Copyright (C) 2012 Bartek Przybylski + * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -23,8 +23,6 @@ import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; -import eu.alefzero.owncloud.datamodel.OCFile; - import android.net.Uri; public class WebdavUtils { @@ -68,10 +66,11 @@ public class WebdavUtils { * @param remoteFilePath Path * @return Encoded path according to RFC 2396, always starting with "/" */ - public static String encode(String remoteFilePath) { + public static String encodePath(String remoteFilePath) { String encodedPath = Uri.encode(remoteFilePath, "/"); if (!encodedPath.startsWith("/")) encodedPath = "/" + encodedPath; return encodedPath; } + }