remote API question

I’m trying to use the remote API to install a custom script. I’m using the install-script script and one of it’s parameters assumes a space between the parameters values. Specifically the db parameter expects the db type and then the db name.

https://some_site:10000/virtual-server/remote.cgi?program=install-script&db=mysql mydbname

I can’t obviously pass this space character on the url unencoded so I tried to encode it with the php urlencode function but the script just fails.

Any suggestions for getting this to work?

The urlencode function should work … but due to a bug in the interaction between remote.cgi and install-script.pl, it doesn’t. However, if you replace the install-script.pl under /usr/libexec/webmin/virtual-server with the one from :

http://download.webmin.com/download/patches/install-script.pl

it will fix this problem.