01513: Unserialize warning in Notify

Summary: Unserialize warning in Notify
Created: 2024-10-04 03:52
Status: Closed, fixed for 2.3.38.
Category: Bug
From: Jyoti
Assigned:
Priority: 2
Version: 2.3.37
OS: FreeBSD 14.1 lighttpd-1.4.76 PHP 8.3.10

Description: In the NotifyUpdate function, the statement doing unserialize($serialized); is generating a PHP warning like the following:

2024-10-04 09:10:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.76/src/mod_fastcgi.c.443) FastCGI-stderr:PHP message: PHP Warning: unserialize(): Extra data starting at offset 239 of 240 bytes in /usr/local/www/notes.ekvastra.in/scripts/notify.php

It is always referring to the closing curly brace "}".

I added log line to print the serialized data, for the above PHP warning it had printed:

The serialized data was: a:1:{s:17:"admin@ekvastra.in";a:3:{s:8:"lastmail";i:1728011001;i:0;s:75:"+%2A+TechnicalNotes.DokuwikiCustomization+.+.+.+2024-10-04+08%3A33+by+Jyoti";i:1;s:75:"+%2A+TechnicalNotes.DokuwikiCustomization+.+.+.+2024-10-04+09%3A02+by+Jyoti";}} Jyoti

Thank you again for the report, this should be fixed for 2.3.38. Until then can get the pre-release from a link near the top of ChangeLog (only the file scripts/notify.php changed for this fix; it was actually the linebreak character after the last "}"). --Petko