There seems to be a small bug in the way ampersand sign (&) is handled in external page title. I have an external blog title which has & as html entity (&) and it ended up showing as "&" instead of just "&" as it was supposed to in pingback commented by field. See the screenshot for an example.

CommentFileSizeAuthor
pingback problem.png28.77 KBvesapalmu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Freso’s picture

Version: 5.x-1.2 » 6.x-1.0
Status: Active » Postponed (maintainer needs more info)

The 5.x branch is no longer supported. Do you still see this behaviour in Pingback 6.x-1.0?

vesapalmu’s picture

Unfortunately this is only used at D5 site and currently upgrade to D6 is not an option for the site.

funana’s picture

Unfortunately this is only used at D5 site and currently upgrade to D6 is not an option for the site.

same here.

vesapalmu’s picture

Version: 6.x-1.0 » 5.x-1.2

Perhaps you could try to recruit a different maintainer for 5.x branch instead of just not supporting it? There is a ton of 5.x sites still out there for a very long time...

Freso’s picture

Version: 5.x-1.2 » 6.x-1.0

@wesku: If you provide a patch for 5.x (and 6.x), we'll be happy to commit it. As it is, nobody seems to want to deal with earlier versions of Pingback (understandably - the code's a mess :/), so unless someone steps up, it's not being supported.

andreashaugstrup’s picture

What Freso said. Neither of us has no interest in maintaining a D5 branch that we will never use. So we will only accept patches for the D6 branch of pingback module. We have no need for a D5 maintainer. Respectfully: It is your job to recruit a D5 branch maintainer. Send him our way and we can talk to him. We do this in our precious spare time and have no wish to spend it on backporting changes to an old Drupal version.

If you wish to backport a bugfix to the D5 branch you can post a D5 patch, but this will only be applied *after* the D6 fix has been applied. There will be no new features in the D5 branch.

vesapalmu’s picture

You might not have need for D5 maintainer, but there are other people out there that do. I will have a look at the latest version of 6.x module and see if I could take over the 5.x branch for you. I have a client who is using this module on a 5.x site and they will not be upgrading to 6 in near future.

NaheemSays’s picture

The bug is not exclusive to ampersands as can be seen on a drupal 6 site.

Could this bug be that the site name/title is check_plain()'ed twice?

Wim Leers’s picture

I think nbz is right. I've got the same problem. Since I don't get that many pingbacks, I'm just editing them manually.

ao2’s picture

Title: Ampersand handling » Handling titles with characters to escape.
Priority: Minor » Normal

While evaluating the pingback module I also came across this problem.

You can reproduce the problem sending yourself a pingback from this site TestTrack, It has a character in the title which is enough to trigger the problem. Another test can be done putting three dots in the title (...) which wordpress will convert to a character.

Do you want even more fun? Put an unescaped < or a > in the post title, now you can't receive the pingback because those charactes make the regex for title fail in pingback module.

Can someone take a look and reproduce those problems?

Thanks, Antonio.

Wim Leers’s picture

Without having looked at the code, I'm fairly sure that the reason is that comment titles in Drupal don't allow for HTML entities — by default at least. That's what we'd have to work around.

eikes’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hi,

same here, I get pingbacks from sites with « and » in the title and any other html-entity will (and does) have the same problem.

The problem is this line (251):

$title = check_plain($matchtitle[1]);

my solution is to change this to

$title = strip_tags(html_entity_decode($matchtitle[1]));

so any html tags wil be stripped, which is acceptable because only malicous sites will have tags nested in the title tag and all html entities will remain, which is desireable, because people love to put these kinds of things in their titles :

♥ ♣ » • ← ∴

eikes’s picture

Status: Postponed (maintainer needs more info) » Needs review
Freso’s picture

@Eikaa: Could you please provide the fix as a patch?

harmanrainu’s picture

Status: Postponed (maintainer needs more info) » Needs review

Well i have now only moved my site http://wannagainbig.com/ from wordpress to drupal and i am persisting with same problem please explain the solution as i am a beginner.

ao2’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing as outdated because drupal 6 is not supported anymore.