From bcbe3108c946554bd908d50e0b189c3b9770c7fd Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 24 Aug 2009 20:08:03 +0000 Subject: [PATCH] ensure the port is a Number --- deluge/ui/web/js/Deluge.Preferences.Proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/js/Deluge.Preferences.Proxy.js b/deluge/ui/web/js/Deluge.Preferences.Proxy.js index 751775d34..f5ed56dbe 100644 --- a/deluge/ui/web/js/Deluge.Preferences.Proxy.js +++ b/deluge/ui/web/js/Deluge.Preferences.Proxy.js @@ -82,7 +82,7 @@ Ext.deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { return { 'type': this.type.getValue(), 'hostname': this.hostname.getValue(), - 'port': this.port.getValue(), + 'port': Number(this.port.getValue()), 'username': this.username.getValue(), 'password': this.password.getValue() }