[wp-hackers] What is the logic on stripping slashes on
add_post_meta?
Ozh
ozh at planetozh.com
Thu Feb 12 14:41:39 GMT 2009
>(...) when people use my plugin on a
>Windows host that uses '\' as directory seperaters. It turns
>"C:\folder\subfolder" into "C:foldersubfolder".
As a general rule in my plugins I always str_replace('\\', '/') every
string that can contain a path, even WP consts and vars such as
TEMPLATEPATH. Saves a lot of troubles and always work no matter what OS is
running.
Ozh
More information about the wp-hackers
mailing list