[pmwiki-users] preg_replace(): The /e modifier is deprecated

Paul Bloch paul at cs.uoregon.edu
Mon Jun 23 14:53:53 CDT 2014


Maybe I fixed it myself.  In htpasswdform.php I changed

< Markup('htpasswdform', '<split',
<   '/\\(:htpasswdform(.*?):\\)/ei', "HtpasswdForm(\$pagename, PSS('$1'))");
---
> Markup_e('htpasswdform', '<split',
>   '/\\(:htpasswdform(.*?):\\)/i', "HtpasswdForm(\$pagename, PSS('$1'))");


I don't get the error and the recipe still seems to work.

Paul

On Jun 23, 2014, at 12:07 PM, Paul Bloch <paul at cs.uoregon.edu> wrote:

> Just upgraded our server and am getting these messages in the log.  I read about it on PmWiki.org and in testing each cookbook recipe it appears that the fault is in the HtpasswdForm recipe.  I only get the error messages when I go to the password form page. We are using ['Version'] = '2008-10-27' which appears to be the latest.
> 
> I don't know PHP well enough to see where the problem lies.  I only find preg_replace in these lines:
> 
> htpasswdform.php:    $user = "'" . preg_replace("/'/", "\\'", $user) . "'";
> htpasswdform.php:  return preg_replace(array('/^(["\'])(.*)\\1$/', '/\\\(["\'])/'),
> 
> 
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list