Topic RSS
no, it really needs to be there… at least if you have a different charset defined than utf…
wonder if there is really a need for the ahah handler to be loaded on non forum pages if you arent using any template tags? will check into it…
might need Andy to weigh in here, but wondering what happens if you add the following before our headers() line
ob_start(); ob_end_clean();
12:04 pm
For the moment, I've wrapped the header call like this:
if(strpos($_SERVER['HTTP_ACCEPT'], 'text/css') === FALSE)
{
header("Content-Type: text/html; charset=".get_option('blog_charset'));
}
Not a 100% fix, but at least it doesn't send the header if the browser requests a PHP file that it expects CSS in return.
Could you instead try moving the 'header' line of code inside the function below it, just above the 'switch' statement near the top. That way it should only ever be invoked if the function needs to actaully be run.
1:59 pm
Yes, moving the header call within the sf_ahah_handler function, just above the switch, works. I had asked if that were an option, but Mr. Papa said it had to be where it was.
Thanks again for your help in looking into this.
We did talk it over. I don't see any problem with the move – it is still the first thing to be outut wo it should be fine but protects non-forum traffic.
Thanks for letting us know. I have an open ticket for the next update.
3:24 pm
Great, I'll leave it within the handler function. Thanks again for your help in getting this sorted out.
Most Users Ever Online: 444
Currently Online: steve.engelking
102 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2625
Members: 7361
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10890
Posts: 79543
Newest Members: ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate, eatonrabbit, prasanna
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22223), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline




Quote
Visit 
Privacy Policy



