<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 1: Example user SFTP interface compares incorrect strings</title><link href="https://sourceforge.net/p/dotnetssh/bugs/1/" rel="alternate"/><link href="https://sourceforge.net/p/dotnetssh/bugs/1/feed.atom" rel="self"/><id>https://sourceforge.net/p/dotnetssh/bugs/1/</id><updated>2010-08-11T00:05:31Z</updated><subtitle>Recent changes to 1: Example user SFTP interface compares incorrect strings</subtitle><entry><title>Example user SFTP interface compares incorrect strings</title><link href="https://sourceforge.net/p/dotnetssh/bugs/1/" rel="alternate"/><published>2010-08-11T00:05:31Z</published><updated>2010-08-11T00:05:31Z</updated><author><name>Paul Atkin</name><uri>https://sourceforge.net/u/userid-776264/</uri></author><id>https://sourceforge.netb5cc0ea26f97b1435cf74b4e727fa9c38eb24e6b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In SshFileTransferTest the user options read mixed case text, check against lowercase but then return the mixed case before deciding what to do against lower case.&lt;/p&gt;
&lt;p&gt;Suggest changing GetProtocol and GetTransferDirection to return the lowercase version:&lt;/p&gt;
&lt;p&gt;public static string GetTransferDirection()&lt;br /&gt;
{&lt;br /&gt;
string dir;&lt;br /&gt;
while (true)&lt;br /&gt;
{&lt;br /&gt;
Console.Write("Enter transfer direction [To|From]: ");&lt;br /&gt;
dir = Console.ReadLine().ToLower();&lt;br /&gt;
if (dir.Equals(string.Empty)) break;&lt;br /&gt;
if (dir.Equals("to") || dir.Equals("from"))&lt;br /&gt;
break;&lt;br /&gt;
Console.Write("Bad input, ");&lt;br /&gt;
}&lt;br /&gt;
return dir;&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>