roundcubemail/program/include/rcmail_output_html.php
public function abs_url($str, $search_path = false)
    {
        if ($str[0] == '/') {
            if ($search_path && ($file_url = $this->get_skin_file($str, $skin_path))) {
                return $file_url;
            }

            return $this->base_path . $str;
        }

        return $str;
    }
public function abs_url($str, $search_path = false)
    {
        if ($str[0] == '/') {
            if ($search_path && ($file_url = $this->get_skin_file($str, $skin_path))) {
                return $file_url;
            }

            return $this->base_path . $str;
        }

        return $str;
    }
public function abs_url ( $ str , $ search_path = false ) { if ( $ str [ 0 ] == '/' ) { if ( $ search_path && ( $ file_url = $ this -> get_skin_file ( $ str , $ skin_path ) ) ) { return $ file_url ; } return $ this -> base_path . $ str ; } return $ str ; }
Make URLs starting with a slash point to skin directory

@param string $str          Input string
@param bool   $search_path  True if URL should be resolved using the current skin path stack

@return string URL
Make URLs starting with a slash point to skin directory