Author Topic: Stripslashes in Page title  (Read 4204 times)

Offline jasonq

  • Newbie
  • *
  • Posts: 3
Stripslashes in Page title
« on: July 05, 2009, 02:46:13 PM »
Obviously (from my earlier post) I am just starting to play around with round cube, considering deploying it on a number of my servers...so I may post a few more proposed patches...

I noticed that the page title does not strip the ' character, and since the installation that I'm playing around with has been named Jason Quick's webmail, that was annoying.

I found the set_pagetitle method in /program/include/rcube_json_output.php does not use stripcslashes or anything, so I modified it:


 
/**
     * Issue command to set page title
     *
     * @param string New page title
     */
    
public function set_pagetitle($title)
    {
        
$name $this->config->get('product_name');
        
$this->command('set_pagetitle'JQ(empty($name) ? $title stripcslashes($name).' :: '.$title));
    }



There may be a more elegant way to do this further up in the API, but this was a quick fix.

Thanks,
Jason Quick
« Last Edit: July 05, 2009, 04:40:58 PM by jasonq »