diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-29 08:17:42 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-29 08:17:42 +0000 |
| commit | d196536731806de8edac56ff5695eb5cea5f671f (patch) | |
| tree | e5806fbfb6e3948e30b2ba2127c61994f5ef550f /roundcubemail/program/include | |
| parent | 199c1ea8389abb003a8c663ca831ef8f269689a3 (diff) | |
- Fix relative URLs handling according to a <base> in HTML (#1487889)
git-svn-id: https://svn.roundcube.net/trunk@4710 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index 1fd6ed035..68f3fe44f 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -231,7 +231,7 @@ function make_absolute_url($path, $base_url) } // $path is absolute - if ($path{0}=='/') + if ($path[0] == '/') $abs_path = $host_url.$path; else { @@ -243,13 +243,13 @@ function make_absolute_url($path, $base_url) { if (strrpos($base_url, '/')) $base_url = substr($base_url, 0, strrpos($base_url, '/')); - + $path = substr($path, 3); } $abs_path = $base_url.'/'.$path; } - + return $abs_path; } |
