Browse Source

add filter rules

main
ghost 3 years ago
parent
commit
eb83ec9297
  1. 12
      src/system/helper/filter.php

12
src/system/helper/filter.php

@ -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;
}
} }
} }

Loading…
Cancel
Save