From: Leandro Lucarella Date: Thu, 18 Sep 2003 17:23:53 +0000 (+0000) Subject: Se arreglan bugs reportados por Myrna. X-Git-Tag: svn_import~276 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/f8724fe08645a098f82faadf569c608f0e753ced?ds=inline Se arreglan bugs reportados por Myrna. --- diff --git a/lib/MECON/HTML/Link.php b/lib/MECON/HTML/Link.php index c33269a..faadfc7 100644 --- a/lib/MECON/HTML/Link.php +++ b/lib/MECON/HTML/Link.php @@ -126,10 +126,12 @@ class MECON_HTML_Link extends HTML_Common { $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 "" . $this->getContents() . ''; }