Leden,

Ik loop er een tijdje tegen aan.
Op een website heb ik content pannel, hier op kunnen klanten zelf content editen.
De pagina ziet er goed uit, maar als ik naar de bron code kijk zie ik het volgende:

stukje code:
<br />
	<br />
	<img height="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;500px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" src="\" width="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;600px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" /><br />
	<br />
	<img height="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;500px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" src="\" width="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;600px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" /><br />
	<br />
	<img src="\" /><br />
	<br />
	<img height="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;450px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" src="\" width="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;500px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" /><br />
	<br />
	<img height="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;200px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" src="\" width="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;300px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" /> <img height="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;200px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" src="\" width="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;300px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" /> <img height="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;200px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" src="\" width="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;300px\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;" /></center>


ik wordt echt moe van die \ het lijkt wel als of hij geescapt wordt...
lijkt ook bij " te gebeuren...

Hoe los ik dit op??

Ik werk met Symfony 2.
In de view staat autoescape uit.

in de controller wordt de content op de body gezet..

lokaal gaat het goed, maar op de server niet... wat zou dit kunnen zijn?
strip_slashes()
htmlentities()
ik zou graag wat meer informatie willen...

Want wanneer komen die back slashes er bij...?
is leuk als ik de backend ga strippen, maar ik wil dat het netjes de database in gaat
Hoe staat bovenstaande tekst (exact) in de database?
Er wordt toch ergens iets escaped.... dat kan je wel ongedaan maken, maar voorkomen is beter dan achteraf genezen.
Ja maar lokaal gaat het wel goed, dus wellicht is het een php setting?

[size=xsmall]Toevoeging op 24/07/2012 09:35:28:[/size]

Sheize =)

magic_quotes_gpc On

[size=xsmall]Toevoeging op 24/07/2012 09:39:47:[/size]

Dit verhielp mijn probleem:

.htaccess
php_flag magic_quotes_gpc Off

Reageren