diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-11-13 08:00:04 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-11-13 08:00:04 +0000 |
| commit | dd21cfdd52f3519ace4e06c72f08c66ef426ee1f (patch) | |
| tree | a02265506c428916d18306e5af0fe39313c51fb4 /roundcubemail/program | |
| parent | a5719fd480ec0325b45344c7effcba55ee3c93da (diff) | |
Fixed strrpos problem in template parser
git-svn-id: https://svn.roundcube.net/trunk@367 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index 7f3771b08..a5e5e8598 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -212,12 +212,9 @@ class rcube_html_page // find and add page footer $output_lc = strtolower($output); - if(($fpos = strrpos($output_lc, '</body>')) || - ($fpos = strrpos($output_lc, '</html>'))) - { - $fpos -= 8; + if(($fpos = strrstr($output_lc, '</body>')) || + ($fpos = strrstr($output_lc, '</html>'))) $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos); - } else $output .= "\n$__page_footer"; |
