Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: octavian_3009 on April 29, 2009, 07:22:16 PM

Title: Sending RoundCube using the application/xhtml+xml mimetype
Post by: octavian_3009 on April 29, 2009, 07:22:16 PM
Hello,
I would like to use content negotiation to send text/html to IE style browsers and application/xhtml+xml to Mozilla style browsers. Thanks to This (http://www.workingwith.me.uk/articles/scripting/mimetypes) article, I've been able to fix the validation errors (in roundcube/program/include/rcube_shared.inc) and change the doctypes. The source indicates (because I tell the PHP to send different code with different mimetypes) that the correct mimetype has been sent. However, when I actually check to see which mimetype is being sent to the browser, it always comes up as text/html.
Is there some code preventing me from sending application/xhtml+xml? If so, which file is it in and how can I fix it?
Title: Sending RoundCube using the application/xhtml+xml mimetype
Post by: octavian_3009 on May 05, 2009, 01:40:53 AM
There must be a way to do this. I'm only trying to send the web pages as real XHTML (mimetype: application/xhtml+xml) to browsers that can handle it. I'm so close. Is there maybe a developer who knows which section of code is preventing this?
Any help would be appreciated.
Title: Sending RoundCube using the application/xhtml+xml mimetype
Post by: Julius Caesar on May 05, 2009, 03:21:37 AM
Quote from: octavian_3009;18895There must be a way to do this. I'm only trying to send the web pages as real XHTML (mimetype: application/xhtml+xml) to browsers that can handle it. I'm so close. Is there maybe a developer who knows which section of code is preventing this?
Any help would be appreciated.

Developers are hardly here. Please use the mailing lists if you want to contact a developer: Getting help for RoundCube Webmail (http://www.roundcube.net/support)
Title: Sending RoundCube using the application/xhtml+xml mimetype
Post by: octavian_3009 on May 06, 2009, 01:44:55 PM
Thank you. I will do that.