r1847 + fix updateRealServer() to use correct bypass argument
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 4 Apr 2008 13:44:15 +0000 (13:44 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 4 Apr 2008 13:44:15 +0000 (13:44 +0000)
inc/ophandlers.php

index 5c9255069d45e4046cfa687cae791628f78b227f..f33ece9e2256b19c854c5a4760762063e847a0ca 100644 (file)
@@ -1145,13 +1145,13 @@ function updateRealServer ()
 {
        global $root, $pageno, $tabno;
 
-       assertUIntArg ('id', __FUNCTION__);
+       assertUIntArg ('pool_id', __FUNCTION__);
        assertUIntArg ('rs_id', __FUNCTION__);
        assertIPv4Arg ('rsip', __FUNCTION__);
        assertUIntArg ('rsport', __FUNCTION__);
        assertStringArg ('rsconfig', __FUNCTION__, TRUE);
        // only necessary for generating next URL
-       $pool_id = $_REQUEST['id'];
+       $pool_id = $_REQUEST['pool_id'];
        if (!commitUpdateRS ($_REQUEST['rs_id'], $_REQUEST['rsip'], $_REQUEST['rsport'], $_REQUEST['rsconfig']))
                return "${root}?page=${pageno}&tab=${tabno}&pool_id=${pool_id}&error=" . urlencode ('commitUpdateRS() failed');
        else