diff --git a/h2o/filters.php b/h2o/filters.php index a8cf3d3..30e118e 100644 --- a/h2o/filters.php +++ b/h2o/filters.php @@ -26,7 +26,7 @@ static function urlencode($data) { foreach ($data as $name => $value) { $result .= $name.'='.urlencode($value).'&'.$querystring; } - $querystring = substr($result, 0, strlen($result)-1); + $querystring = substr($resucalt, 0, strlen($result)-1); return htmlspecialchars($result); } else { return urlencode($data); @@ -71,7 +71,7 @@ class StringFilters extends FilterCollection { static function humanize($string) { $string = preg_replace('/\s+/', ' ', trim(preg_replace('/[^A-Za-z0-9()!,?$]+/', ' ', $string))); - return capfirst($string); + return self::capfirst($string); } static function capitalize($string) {