diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-06-09 16:58:30 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-06-09 16:58:30 +0000 |
commit | 9774b282738ac937305fa2209b7ad1e372abe715 (patch) | |
tree | e5e37e7a03f81167570fc8abd2d5e64828d8163a /x11/kdelibs3/files/patch-kio_misc_ktelnetservice.cpp | |
parent | 2c35d214c7188108e6fda3c4580c64ed85511cce (diff) | |
download | ports-9774b282738ac937305fa2209b7ad1e372abe715.tar.gz ports-9774b282738ac937305fa2209b7ad1e372abe715.zip |
Notes
Diffstat (limited to 'x11/kdelibs3/files/patch-kio_misc_ktelnetservice.cpp')
-rw-r--r-- | x11/kdelibs3/files/patch-kio_misc_ktelnetservice.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/x11/kdelibs3/files/patch-kio_misc_ktelnetservice.cpp b/x11/kdelibs3/files/patch-kio_misc_ktelnetservice.cpp deleted file mode 100644 index d1ea72237aaa..000000000000 --- a/x11/kdelibs3/files/patch-kio_misc_ktelnetservice.cpp +++ /dev/null @@ -1,24 +0,0 @@ ---- kio/misc/ktelnetservice.cpp 18 Feb 2004 11:42:12 -0000 1.7.2.1 -+++ kio/misc/ktelnetservice.cpp 13 May 2004 15:12:14 -0000 -@@ -77,10 +77,19 @@ int main(int argc, char **argv) - cmd << url.user(); - } - -+ QString host; - if (!url.host().isEmpty()) -- cmd << url.host(); // telnet://host -+ host = url.host(); // telnet://host - else if (!url.path().isEmpty()) -- cmd << url.path(); // telnet:host -+ host = url.path(); // telnet:host -+ -+ if (host.isEmpty() || host.startsWith("-")) -+ { -+ kdError() << "Invalid hostname " << host << endl; -+ return 2; -+ } -+ -+ cmd << host; - - if (url.port()){ - if ( url.protocol() == "ssh" ) |