I've solved the problem with magic quotes off, I made a mistake when said it was off.

With magic quotes on, my row looks like this:

id: 1 | nome: Keyne | email: ke...@xxx.com.br | sobre: I\'m both entrepreneur and...


Now that is off, no slashes appear in the database and view.

I was a bit confused, so I said that I didn't have double slashes due to this showed above. Now I do not have double or single slashes either. Now it's solved.


Thank you.


Pádraic Brady escreveu:
You may need to explain more clearly what exactly is happening. From the previous report (before yours), it sounds like data was double escaped before insertion into a database. Meanwhile, you seem to be saying its not but it only has double-escaping when used outside of Zend_Form which is different.

Either way, it makes no sense!

Is the data retrieved from the database slashed or not slashed? If it is, that's a database problem - not the View. If it's not - then why would anything between the DB and View be adding extra slashes you say need to be stripped? There's nothing in Zend_View or Zend_Form that I am aware of that adds slashes.

Just to be clear, the way things should work is that data is escaping going into the database, and unescaped upon retrieval. The data itself therefore remains consistent and there should be no extra slashes anywhere unless added by some external process (e.g. addslashes, mysql_real_escape_string, magic quotes, etc).

Paddy
 
Pádraic Brady

http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative


Reply via email to