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

Loading…
Cancel
Save