Plugin Directory

Changeset 1964460


Ignore:
Timestamp:
10/28/2018 11:26:03 AM (7 years ago)
Author:
poku
Message:

1.0.0

Location:
block-spam-comment
Files:
4 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • block-spam-comment/tags/1.0.0/Block-Spam-Comment.php

    r1964452 r1964460  
    6565    $bsc_log[] = array(
    6666        'time' => $_SERVER['REQUEST_TIME'],
    67         'name' => substr(htmlentities($_POST['author']),0,50),
     67        'name' => mb_strimwidth(htmlentities($_POST['author']), 0, 50, '…', 'UTF-8'),
    6868        'ip' => htmlentities($ip),
    69         'agent' => substr(htmlentities($_SERVER['HTTP_USER_AGENT']),0,200),
     69        'agent' => mb_strimwidth(htmlentities($_SERVER['HTTP_USER_AGENT']), 0, 200, '…', 'UTF-8'),
    7070        'cause' => $cause,
    7171        'post' => $post_id
  • block-spam-comment/trunk/Block-Spam-Comment.php

    r1964452 r1964460  
    6565    $bsc_log[] = array(
    6666        'time' => $_SERVER['REQUEST_TIME'],
    67         'name' => substr(htmlentities($_POST['author']),0,50),
     67        'name' => mb_strimwidth(htmlentities($_POST['author']), 0, 50, '…', 'UTF-8'),
    6868        'ip' => htmlentities($ip),
    69         'agent' => substr(htmlentities($_SERVER['HTTP_USER_AGENT']),0,200),
     69        'agent' => mb_strimwidth(htmlentities($_SERVER['HTTP_USER_AGENT']), 0, 200, '…', 'UTF-8'),
    7070        'cause' => $cause,
    7171        'post' => $post_id
Note: See TracChangeset for help on using the changeset viewer.