If you check the code of isXmlHttpRequest, you'll see it is very simple:

    return ($this->getHttpHeader('X_REQUESTED_WITH') == 'XMLHttpRequest');

So check if your javascript code sets that header, also check if it
actually gets sent.

On Wed, Sep 1, 2010 at 12:11, HAUSa
<[email protected]> wrote:
> Yes, but is there someone who can reproduce this?
> Seems like a Symfony bug...!
>
> On 31 aug, 20:33, Stéphane <[email protected]> wrote:
>> Compare the http request headers of the firefox's xhr over the ie8's one
>>
>> Before Printing, Think about Your Environmental Responsibility!
>> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>>
>> On Tue, Aug 31, 2010 at 8:20 PM, HAUSa <
>>
>> [email protected]> wrote:
>> > In IE8, my isXmlHttpRequest function doesn't work.
>> > In my template, I use <?php if(!$sf_request->isXmlHttpRequest()): ?>
>> > to hide content if it is an AJAX call.
>> > Firefox handles this okay, but IE8 shows the entire template, as well
>> > as the complete layout again!
>>
>> > How is this possible? Bug?
>> > Anyone who knows a fix?
>>
>> > --
>> > If you want to report a vulnerability issue on symfony, please send it to
>> > security at symfony-project.com
>>
>> > You received this message because you are subscribed to the Google
>> > Groups "symfony users" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to
>> > [email protected]<symfony-users%[email protected]>
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to