Fixes #2865 by merging in the submitted patch

git-svn-id: file:///home/svn/framework3/trunk@10715 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore
2010-10-16 22:07:29 +00:00
parent 9902dcb9cc
commit 893bc949f1
+3 -2
View File
@@ -48,6 +48,7 @@ def langdetect(lang)
lang = "en_EN"
end
end
return lang
rescue::Exception => e
print_status("The following Error was encountered: #{e.class} #{e}")
end
@@ -138,7 +139,7 @@ end
# Parsing of Options
usr = nil
pass = nil
lang = "en_EN"
lang = nil
lport = 1024 + rand(1024)
enbl = nil
frwrd = nil
@@ -170,7 +171,7 @@ if client.platform =~ /win32|win64/
enabletssrv()
end
if usr and pass
langdetect(lang)
lang = langdetect(lang)
addrdpusr(session, usr, pass, lang)
end
if frwrd == true