On the profile page you set a custom time string to be appended to the saved file. If you need to double escape a letter, no problem. But if you come back and edit the profile again, the time format field will only show single backslash escapes and when you save, you'll lose the escape behavior you had previously.

For example, I want my time string to look like this: Dec-01-10at09-45am
This is what I put in the time string field to get that: M-d-y\\a\\th-ia

it works fine. But when I come back to the profile to edit it again for any reason, it shows: M-d-y\a\th-ia
Upon "Save" the escapes no longer work and I get: Dec-01-10am3109-03am (the "a" from the word "at" is read as code for "am" and the "t" in the word "at" is read as code for "the number of days in the given month" and so echoes "31").

This is a small bug of little import... but I thought I'd report it if it is easy to fix.

Shai

Comments

xaav’s picture

Priority: Minor » Normal
ronan’s picture

Status: Active » Closed (works as designed)

Sounds like magic_quotes is turned on on your server. See that link for ideas on how to turn that off.

Shai’s picture

Status: Closed (works as designed) » Active

@ronan,

Magic quotes are definitely off on my server:

magic_quotes_gpc Off Off

Have you tried to reproduce this?

Thanks for the great module.

Shai

ronan’s picture

Yep, I have had no problems with escape codes in the format field. In fact the default timestamp format in the module has an escaped character. I tried your example and too worked fine. You shouldn't need to escape the backslashes themselves either (\\a\\t) so it does seem like your server is stripping the slashes, but I'm really not sure how or why if you don't have magic quotes on.

ronan’s picture

Status: Active » Postponed (maintainer needs more info)
ronan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Is this still an issue? If so please reopen.