View | Details | Raw Unified | Return to bug 55560
Collapse All | Expand All

(-)kio/misc/ktelnetservice.cpp (-2 / +11 lines)
Lines 77-86 int main(int argc, char **argv) Link Here
77
		cmd << url.user();
77
		cmd << url.user();
78
	}
78
	}
79
79
80
        QString host;
80
        if (!url.host().isEmpty())
81
        if (!url.host().isEmpty())
81
           cmd << url.host(); // telnet://host
82
           host = url.host(); // telnet://host
82
        else if (!url.path().isEmpty())
83
        else if (!url.path().isEmpty())
83
           cmd << url.path(); // telnet:host
84
           host = url.path(); // telnet:host
85
86
        if (host.isEmpty() || host.startsWith("-"))
87
        {
88
            kdError() << "Invalid hostname " << host << endl;
89
            return 2;
90
        }
91
92
        cmd << host;
84
        
93
        
85
	if (url.port()){
94
	if (url.port()){
86
            if ( url.protocol() == "ssh" )
95
            if ( url.protocol() == "ssh" )

Return to bug 55560