Escaping of punctuation marks

Brian Silvers
Brian Silvers
Joined: 26 Aug 05
Posts: 772
Credit: 282700
RAC: 0
Topic 193797

Why is it that text that contains an apostrophe or quotation mark (and possibly other punctuation marks as well) appear to be escaped out, meaning that they will have a \ in front of the punctuation mark.

Am I the only one seeing this?

Test: Don't you see what I'm seeing? "Maybe?"

Brian Silvers
Brian Silvers
Joined: 26 Aug 05
Posts: 772
Credit: 282700
RAC: 0

Escaping of punctuation marks

Quote:

Why is it that text that contains an apostrophe or quotation mark (and possibly other punctuation marks as well) appear to be escaped out, meaning that they will have a \ in front of the punctuation mark.

Am I the only one seeing this?

Test: Don't you see what I'm seeing? "Maybe?"

OK, so my own post doesn't behave this way... :shrug:

Mike Hewson
Mike Hewson
Moderator
Joined: 1 Dec 05
Posts: 6594
Credit: 338488523
RAC: 425425

Your right, but only happens

Your right, but only happens on 'old' threads prior to last weekend. Suggests a change in the encoding methodology since. Either a database and/or PHP thingy.

Cheers, Mike.

I have made this letter longer than usual because I lack the time to make it shorter ...

... and my other CPU is a Ryzen 5950X :-) Blaise Pascal

David Hammer
David Hammer
Joined: 15 Oct 04
Posts: 360
Credit: 1672886
RAC: 0

I am trying to figure out

I am trying to figure out what is going wrong here.

The database is the same and I am using the same "magic quotes" settings for php as I was before.

I am going to try to find a BOINC webpage that talks about this. If you know anything about this issue post something here.

J Langley
J Langley
Joined: 30 Dec 05
Posts: 50
Credit: 58338
RAC: 0

The same problem recently

Message 83058 in response to message 83057

The same problem recently appeared at LHC - they too have upgraded to the latest server code. My guess is that this is the result of a mistake in code attempting to prevent SQL Injection attacks.
There has been no response as yet from admins at LHC, but they're generally pretty quiet, and they have other website issues since the upgrade (which don't seem to have affected E@H, but LHC customise their web pages instead of using the out-of-the-box BOINC-style ones), so they might not yet have seen the problem.

KSMarksPsych
KSMarksPsych
Moderator
Joined: 15 Oct 05
Posts: 2702
Credit: 4090227
RAC: 0

RE: I am trying to figure

Message 83059 in response to message 83057

Quote:

I am trying to figure out what is going wrong here.

The database is the same and I am using the same "magic quotes" settings for php as I was before.

I am going to try to find a BOINC webpage that talks about this. If you know anything about this issue post something here.

David,

Does this help?

Quote:

I checked in some code (in html/ops/repair_forums.php)
to change " to " and ' to ' in:
- forum posts
- forum thread titles
- profile text

I've run this on SETI@home and the BOINC message boards;
I recommend that you run it to make your message boards look nice.

-- David

It was from boinc_projects on July 29th.

Kathryn :o)

Einstein@Home Moderator

David Hammer
David Hammer
Joined: 15 Oct 04
Posts: 360
Credit: 1672886
RAC: 0

RE: RE: I am trying to

Message 83060 in response to message 83059

Quote:
Quote:

I am trying to figure out what is going wrong here.

The database is the same and I am using the same "magic quotes" settings for php as I was before.

I am going to try to find a BOINC webpage that talks about this. If you know anything about this issue post something here.

David,

Does this help?

Quote:

I checked in some code (in html/ops/repair_forums.php)
to change " to " and ' to ' in:
- forum posts
- forum thread titles
- profile text

I've run this on SETI@home and the BOINC message boards;
I recommend that you run it to make your message boards look nice.

-- David

It was from boinc_projects on July 29th.

Yes. This is what I needed and it looks like it worked. Unfortunately I did not see your post right away because I had not have my account settings correct.

Brian Silvers
Brian Silvers
Joined: 26 Aug 05
Posts: 772
Credit: 282700
RAC: 0

RE: RE: RE: I am trying

Message 83061 in response to message 83060

Quote:
Quote:
Quote:

I am trying to figure out what is going wrong here.

The database is the same and I am using the same "magic quotes" settings for php as I was before.

I am going to try to find a BOINC webpage that talks about this. If you know anything about this issue post something here.

David,

Does this help?

Quote:

I checked in some code (in html/ops/repair_forums.php)
to change " to " and ' to ' in:
- forum posts
- forum thread titles
- profile text

I've run this on SETI@home and the BOINC message boards;
I recommend that you run it to make your message boards look nice.

-- David

It was from boinc_projects on July 29th.

Yes. This is what I needed and it looks like it worked. Unfortunately I did not see your post right away because I had not have my account settings correct.

Thanks for running the fix-it script... :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.