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