Connecting Tech Pros Worldwide Forums | Help | Site Map

Intermittent escaping backslashes appear in output

Tom Chadwin
Guest
 
Posts: n/a
#1: Jul 17 '05
Hello all

Using PHP 4.1.2, I am seeing intermittent visible escaping backslashes
in my HTML output. Try refreshing the following page a few times to
see what I mean:

http://www.actorscentrene.co.uk/thre...ssageThread=25

It seems totally random. Any ideas? The extra escaping backslashes are
not present in the underlying MySQL records. magic_quotes_gpc is on.

Thanks,

Tom

Tim Tyler
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Intermittent escaping backslashes appear in output


Tom Chadwin <tom.chadwin@gmail.com> wrote or quoted:
[color=blue]
> Using PHP 4.1.2, I am seeing intermittent visible escaping backslashes
> in my HTML output. Try refreshing the following page a few times to
> see what I mean:
>
> http://www.actorscentrene.co.uk/thre...ssageThread=25
>
> It seems totally random. [...][/color]

It seems totally deterministic and predictable to me :-|

Calling stripslashes(...) before outputting looks like it would fix things.
--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.
Tom Chadwin
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Intermittent escaping backslashes appear in output


> It seems totally deterministic and predictable to me :-|
[color=blue]
> Calling stripslashes(...) before outputting looks like it would fix things.[/color]

Probably so, but that is treating the symptom, not the cause. Why
would the backslashes only appear intermittently and not consistently?

Thanks,

Tom
Tim Tyler
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Intermittent escaping backslashes appear in output


Tom Chadwin <tom.chadwin@gmail.com> wrote or quoted:
[color=blue][color=green]
> > It seems totally deterministic and predictable to me :-|[/color]
>[color=green]
> > Calling stripslashes(...) before outputting looks like it would fix things.[/color]
>
> Probably so, but that is treating the symptom, not the cause. Why
> would the backslashes only appear intermittently and not consistently?[/color]

They *did* appeare totally consistently when I observed your page.

*Now* they don't appear (also consistently).

In both cases I tested using many page refreshes.

I presume this indicates that you have resolved the problem.
--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.
Tom Chadwin
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Intermittent escaping backslashes appear in output


> I presume this indicates that you have resolved the problem.

No. I have altered nothing. I, too, cannot get them to appear now. As
I say, intermittent.

Thanks,

Tom
Closed Thread