fix trim error (#1697)

This commit is contained in:
Lu Fei 2024-01-09 14:56:25 +08:00 committed by GitHub
parent 7115a30301
commit c816efa26e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ class Edit extends Contents implements ActionInterface
/** 发送ping */
$trackback = array_filter(
array_unique(preg_split("/(\r|\n|\r\n)/", trim($this->request->get('trackback'))))
array_unique(preg_split("/(\r|\n|\r\n)/", trim($this->request->get('trackback', ''))))
);
Service::alloc()->sendPing($this, $trackback);