SMF Support > Converting to SMF

XMB-to-SMF converter leaves backslashes

(1/8) > >>

Misanthrope:
I just converted my old XMB 1.9 forum over to SMF, and the only problem I have is that all of the apostrophes and quotes in the posts/threads on the converted SMF install are now escaped with backslashes.

*HOW* do I get rid of those?

-Misanthrope

[Unknown]:
Have you had any new posts yet?

Is it both " and '?  I assume \ also would be escaped - anything else?  Are most bbc tags working properly?

I'm afraid the XMB converter hasn't had as much testing as we'd like, but I wasn't aware of this issue.  I wonder if it's only 1.9, but I expect it's probably not.

-[Unknown]

Misanthrope:
Yes, apostrophes and quotes were escaped.

The way XMB works, it stripslashes everything it pulls from the database before displaying it, and when I look inside the XMB database I see backslashes all over the place. So XMB aparently adds slashes somewhere in the process of putting information into the database, and I think that's what's confusing your converter's output.

So the converter should strip the slashes out of the data pulled from the XMB database before sticking it in the SMF database. I think this would fix the conversion problem. I'd do it, but my PHP mastery isn't quite up to the level I'd like it to be.

-Misanthrope

Peter Duggan:

--- Quote from: Misanthrope on December 10, 2004, 02:30:47 AM ---So XMB aparently adds slashes somewhere in the process of putting information into the database
--- End quote ---

So does all properly-written software (including SMF).

<edit>At least I thought it did, but it looks like it's giving us &#039; and &quot; instead now.</edit>

Misanthrope:
Without checking to see if the database input is already escaped? In a lot of places I'm seeing multiple backslashes, and this is what I\\\\\'m talking about.

-Misanthrope

Navigation

[0] Message Index

[#] Next page

Go to full version