Issues adding comments in DITA Map WebHelp Responsive with Feedback
Posted: Fri Aug 05, 2016 4:14 pm
Hi,
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
to
fixed that issue.
The second one is inside Utils.php
line 429
leads to an error message stating
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