function _fetchFields() { $this->_articleId = $this->_request->getValue("articleId"); $this->_blogId = $this->_request->getValue("blogId"); $this->_opId = $this->_request->getValue("op"); $this->_parentId = $this->_request->getValue("parentId"); if ($this->_parentId == null || $this->_parentId == "") { $this->_parentId = 0; } $this->_userEmail = Textfilter::filterAllHTML($this->_request->getValue("userEmail")); $this->_userUrl = Textfilter::filterAllHTML($this->_request->getValue("userUrl")); if (strlen($this->_userUrl) != 0 && substr($this->_userUrl, 0, 7) != "http://") { $this->_userUrl = "http://" . $this->_userUrl; } $this->_userName = Textfilter::filterAllHTML($this->_request->getValue("userName")); $this->_commentText = trim($this->_request->getValue("commentText")); $this->_commentTopic = trim(Textfilter::filterAllHTML($this->_request->getValue("commentTopic"))); // remove all weird stuff from the comment text $tf = new TextFilter(); $this->_commentText = $tf->xhtmlize($tf->filterHTML($this->_commentText)); // now, if the option is set, we 'beautify' the text typed by users if ($this->_config->getValue("beautify_comments_text")) { $this->_commentText = $tf->autop($this->_commentText); } }