Guest User

Untitled

a guest
Dec 8th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. *** set a breakpoint in malloc_error_break to debug
  2. httpd(60406) malloc: *** error for object 0x2af7070: pointer being freed was not allocated
  3. *** set a breakpoint in malloc_error_break to debug
  4. httpd(60412) malloc: *** error for object 0x2ae0004: pointer being freed was not allocated
  5. *** set a breakpoint in malloc_error_break to debug
  6. httpd(60412) malloc: *** error for object 0x2af7070: pointer being freed was not allocated
  7. *** set a breakpoint in malloc_error_break to debug
  8. [Sun Oct 21 13:13:18 2012] [notice] child pid 60414 exit signal Segmentation fault (11)
  9.  
  10. // ContentMedia model
  11. public function purifyHTMLText(){
  12.  
  13. $CI =& get_instance();
  14.  
  15. $this->imageCredits = $CI->applibrary->doPurify($this->imageCredits);
  16. $this->contentCopy = $CI->applibrary->doPurify($this->contentCopy);
  17. $this->extraCredits = $CI->applibrary->doPurify($this->extraCredits);
  18. $this->authors = $CI->applibrary->doPurify($this->authors);
  19.  
  20. }
  21.  
  22. // AppLibrary
  23. public function getHTMLPurifier(){
  24.  
  25. if(!isset($htmlPurifier)){
  26.  
  27. $CI =& get_instance();
  28. $CI->load->library('HTMLPurifier');
  29. $config = HTMLPurifier_Config::createDefault();
  30. $config->set('HTML.Allowed', 'a[href],br,b,strong,em');
  31. $config->set('HTML.DefinitionID', 'mydef');
  32. $config->set('HTML.DefinitionRev', 1);
  33. $config->set('Cache.DefinitionImpl', 'Serializer');
  34. $def = $config->maybeGetRawDefinition('HTML');
  35. $this->htmlPurifier = new HTMLPurifier($config);
  36.  
  37. }
  38.  
  39. }
  40.  
  41. public function doPurify($text){
  42. $this->getHTMLPurifier();
  43. return $this->htmlPurifier->purify($text);
  44. }
Advertisement
Add Comment
Please, Sign In to add comment