/*! Check and sanitize value of input field.
*/
public function check_keywords($val)
{
return preg_replace('/[^[:alnum:]-,]/i', '', $val);
}
PodloveKeywordsPlugin::check_keywords fails with php7.4. With php7.3 the Perl-Compatible Regular Expressions (PCRE) extension has been upgraded to PCRE2. It's not documented if the :alnum: class is deprecated (at least I didn't find any)
This means that no more keywords are stored, but the workaround
The execution of
preg_replace
inPodloveKeywordsPlugin::check_keywords
fails with php7.4. With php7.3 the Perl-Compatible Regular Expressions (PCRE) extension has been upgraded to PCRE2. It's not documented if the:alnum:
class is deprecated (at least I didn't find any)This means that no more keywords are stored, but the workaround
solved the issue.