Some problems when specifying keywords #282
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: tslocum/tinyib#282
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Several issues were identified when I specified "Manage mode >> keywords".
1. Failure when "Regular expression" option is enabled
If I specify the "Regular expression" option in "Manage mode >> keywords", when I post, the post succeeds, but keyword confirmation fails.
Since the following error is displayed, it is thought that the delimiter has not been specified in "preg_match ".
When posts:
I tentatively modified it as follows.
functions.php : function checkKeywords($text)
if (preg_match(substr($keyword['text'], 7), $text)) {
to...
if (preg_match('/' . substr($keyword['text'],7) . '/' . TINYIB_WORDBREAK_MULTIBYTE , $text)) {
I added TINYIB_WORDBREAK_MULTIBYTE according to issue #273, but it probably works without it.
2.If I specify "Hide until approved" as the "Action" of "Keywords", the post containing the Keyword is not displayed in "Status".
If the "Action" of "Keywords" is "Hide until approved" , the Poster makes a post that includes the Keyword, that post will not be displayed in "Status" etc. The only way to display a post is to specify the "Post ID" with "Moderate a post", but there is no way for the administrator to know the "Post ID" normally.
Also, even if I specify the "Post ID" with "Moderate a post" and display it, I cannot make the post Moderated.
It seems that the function to display "Hide until approved" posts and change them to Moderated has not yet been implemented.
I plan to add the ability to display a Post with "Hide until approved" in Status and the ability to make a Post Moderated with "Moderate a post".
3. IP address is crypt hash
Apart from that, is it by design that the IP address is a crypt hash?
This is probably by design.
pdo.php : function insertPost($post)
$stm->execute(array($post['parent'], $now, $now, hashData(remoteAddress()), $post['name'], $post['tripcode'], $post['email'],
Thanks. I will look into this more when I have the time.
Yes. This was done to expose as little real information as possible about users' IP addresses, while still supporting banning by IP.