WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18322, comment 9


Ignore:
Timestamp:
10/01/11 00:42:34 (3 years ago)
Author:
Mick P.
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18322, comment 9

    initial v1  
    11 
    2 Please remember. From an end user point of view, the main problem is having to constantly unslash some data that is wanted to be slashed. The easiest way to deal with it is to overwrite the data in the array at some point, but it has to be after whenever WP does its version of Magic Quotes (assuming WP uses the same algorithm as PHP) but to do that you need to be certain that WP is doing its MQ, which you cannot assume it always will.   
     2Please remember. From an end user point of view, the main problem is having to constantly unslash some data that is wanted to be pristine. The easiest way to deal with it is to overwrite the data in the array at some point, but it has to be after whenever WP does its version of Magic Quotes (assuming WP uses the same algorithm as PHP) but to do that you need to be certain that WP is doing its MQ, which you cannot assume it always will.   
    33 
    44http://wordpress.org/support/topic/wp-automatically-escaping-get-and-post-etc-globals?replies=3#post-2368782