I have to admin a patch is not that simple so I did it for you.
If you are interested you can check http://tamsler.blogspot.ca/2009/02/patching-with-git-diff.html
I created the patch and uploaded it so all you need is to save it on a directory that is not rewrite on reboot and apply it every time.
Login to zs then
mkdir -p /DB/opt/patch && cd /DB/opt/patch
Now on ZS web interface on preboot script add
cd /root/kerbynet.cgi && patch -p0 </DB/opt/patch/sethttps_ui-ZS-3.6.0.patch