when running the WebHelp Responsive with Feedback on my WebServer, I ran into two problems when trying to add a comment
The environment I am using is
OS: Windows 7 Professional 64bit
Apache 2.4
PHP 5.6.24
mysql 5.7
1. The very first try to add a comment on a topic or task page failed as there was an empty POST Parameter for 'comment'
changing line 79 of comment.php from
Code: Select all
$info["referedComment"] = (isset($_POST['comment']) ? $_POST['comment'] : 0);
Code: Select all
if (isset($_POST['comment']) && strlen( $_POST['comment']) > 0) {
$info["referedComment"] = $_POST['comment'] ;
} else {
$info["referedComment"] = 0;
}
The second one is inside Utils.php
line 429
Code: Select all
return preg_replace('/<(.*?)>/ie', "'<' . preg_replace(array('/javascript:[^\"\']*/i', '/(" . implode('|',
$aDisabledAttributes) . ")[ \\t\\n]*=[ \\t\\n]*[\"\'][^\"\']*[\"\']/i', '/\s+/'), array('', '', ' '), stripslashes('\\1')) . '>'",
preg_replace(): The /e modifier is deprecated, use preg_replace_callback