look for the dot, too

git-svn-id: file:///home/svn/framework3/trunk@9219 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-05-04 23:06:25 +00:00
parent 2e926a1c22
commit 1fe426bcf5
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def upload(session,file,trgloc = "")
end
begin
ext = file[file.rindex(".") .. -1]
if ext and ext.downcase == "exe"
if ext and ext.downcase == ".exe"
fileontrgt = "#{location}\\svhost#{rand(100)}.exe"
else
fileontrgt = "#{location}\\TMP#{rand(100)}#{ext}"