roundcubemail/program/lib/Roundcube/rcube_db.php
public function quote_identifier($str)
    {
        $start = $this->options['identifier_start'];
        $end   = $this->options['identifier_end'];
        $name  = array();

        foreach (explode('.', $str) as $elem) {
            $elem = str_replace(array($start, $end), '', $elem);
            $name[] = $start . $elem . $end;
        }

        return implode($name, '.');
    }
public function quote_identifier($str)
    {
        $start = $this->options['identifier_start'];
        $end   = $this->options['identifier_end'];
        $name  = array();

        foreach (explode('.', $str) as $elem) {
            $elem = str_replace(array($start, $end), '', $elem);
            $name[] = $start . $elem . $end;
        }

        return implode($name, '.');
    }
public function quote_identifier ( $ str ) { $ start = $ this -> options [ 'identifier_start' ] ; $ end = $ this -> options [ 'identifier_end' ] ; $ name = array ( ) ; foreach ( explode ( '.' , $ str ) as $ elem ) { $ elem = str_replace ( array ( $ start , $ end ) , '' , $ elem ) ; $ name [ ] = $ start . $ elem . $ end ; } return implode ( $ name , '.' ) ; }
Quotes a string so it can be safely used as a table or column name

@param string $str Value to quote

@return string Quoted string for use in query
Quotes a string so it can be safely used as a table or column name