Hide PHP Warning: substr_compare() The length cannot exceed initial string length
Fix compatibility with PHP 5.2
Merge branch 'release-1.0' of github.com:roundcube/roundcubemail into release-1.0