Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions h2o/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down