From f8724fe08645a098f82faadf569c608f0e753ced Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 18 Sep 2003 17:23:53 +0000 Subject: [PATCH] Se arreglan bugs reportados por Myrna. --- lib/MECON/HTML/Link.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() . ''; } -- 2.43.0