phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015307phplist applicationAll Otherpublic28-06-09 23:3909-04-10 17:22
Reporterh2b2 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.10.10 
Target VersionFixed in Version2.10.11 
Summary0015307: Forward feature incompatible with < PHP 5.1.0 because of "htmlspecialchars_decode" function
Descriptionbdario reports a PHP version incompatibility in the phpList forward feature applied in lists/index.php:

======== Start quote =========

after putting error_reporting(E_ALL) inside the forwardPage() function i got this error:

Fatal error: Call to undefined function: htmlspecialchars_decode() in /var/www/vhosts/rsync/unitec/lists/index.php on line 817
phplist version 2.10.10

The "htmlspecialchars_decode" function exists only on PHP 5 >= 5.1.0 while my server PHP Version is 4.3.10-22.

======== End quote =========
ref: http://forums.phplist.com/viewtopic.php?f=6&t=23318#p63411 [^]

Additional Informationbdario suggests the following fix:

======== Start quote =========

So I found a replacement of that function for PHP4 and I added the code just before the calling of forwardPage function, on line # 745 of the file index.php


    if (!function_exists("htmlspecialchars_decode")) {
       function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) {
           return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
       }
    }


and now it works
======== End quote =========
ref: http://forums.phplist.com/viewtopic.php?f=6&t=23318#p63411 [^]

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate 0015268resolved Forward link does not redirect 
child of 0015369resolvedmichiel 2.10.10 initial patches 

-  Notes
There are no notes attached to this issue.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker