$vars[] = urlencode($var) . '=' . urlencode($v);
}
if ($vars) {
- $val = '?' . join('&', $vars);
+ $val .= '?' . join('&', $vars);
}
+ } else {
+ $val = htmlentities($val);
}
- $attrs .= ' ' . $key . '="' . htmlentities($val) . '"';
+ $attrs .= ' ' . $key . '="' . $val . '"';
}
return "<A$attrs>" . $this->getContents() . '</A>';
}
function setGetVar($key, &$value) // ~X2C
{
if (is_object($value)) {
- $this->attrs[$key] =& $value;
+ $this->_getVars[$key] =& $value;
} else {
- $this->attrs[$key] = $value;
+ $this->_getVars[$key] = $value;
}
}
// -X2C