use POST for Hive now as the bug is fixed

This commit is contained in:
moodler 2005-07-15 05:54:00 +00:00
parent 01af6da601
commit f27149b73a

View file

@ -38,15 +38,15 @@ function sso_user_login($username, $password) {
$submit_vars['HIVE_USERIP'] = getremoteaddr(); $submit_vars['HIVE_USERIP'] = getremoteaddr();
/// Ideally we would use POST for a bit more security, but there is a Hive bug preventing this /// Ideally we use POST to call Hive with a bit more security
/// $snoopy->submit($submit_url,$submit_vars); $snoopy->submit($submit_url,$submit_vars);
/// Using GET instead /// If there's a bug, we may need to use GET instead
foreach ($submit_vars as $name => $value) { /// foreach ($submit_vars as $name => $value) {
$params[] = "$name=".urlencode($value); /// $params[] = "$name=".urlencode($value);
} /// }
$submit_url .= '?'.implode('&', $params); /// $submit_url .= '?'.implode('&', $params);
$snoopy->fetch($submit_url); /// $snoopy->fetch($submit_url);
/// Extract HIVE_SESSION from headers /// Extract HIVE_SESSION from headers