<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 1: Example user SFTP interface compares incorrect strings</title><link>https://sourceforge.net/p/dotnetssh/bugs/1/</link><description>Recent changes to 1: Example user SFTP interface compares incorrect strings</description><atom:link href="https://sourceforge.net/p/dotnetssh/bugs/1/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 11 Aug 2010 00:05:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dotnetssh/bugs/1/feed.rss" rel="self" type="application/rss+xml"/><item><title>Example user SFTP interface compares incorrect strings</title><link>https://sourceforge.net/p/dotnetssh/bugs/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul Atkin</dc:creator><pubDate>Wed, 11 Aug 2010 00:05:31 -0000</pubDate><guid>https://sourceforge.netb5cc0ea26f97b1435cf74b4e727fa9c38eb24e6b</guid></item></channel></rss>