|
|
|
@ -104,6 +104,14 @@ class Filter {
@@ -104,6 +104,14 @@ class Filter {
|
|
|
|
|
$result = []; |
|
|
|
|
foreach ((array) $userPost as $key => $value) { |
|
|
|
|
|
|
|
|
|
switch ($key) { |
|
|
|
|
case 'sig_userpost': |
|
|
|
|
$result[$key] = self::sigUserPost($value); |
|
|
|
|
break; |
|
|
|
|
case 'userpost': |
|
|
|
|
$result[$key] = self::userPost($value); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
switch ($key) { |
|
|
|
|
case 'height': |
|
|
|
|
$result[$key] = self::int($value); |
|
|
|
@ -132,6 +140,10 @@ class Filter {
@@ -132,6 +140,10 @@ class Filter {
|
|
|
|
|
case 'rt': |
|
|
|
|
$result[$key] = self::userPost($value); |
|
|
|
|
break; |
|
|
|
|
case 'reply': |
|
|
|
|
$result[$key] = self::userPost($value); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|