HTML entities not handled correctly

tessmonsta - May 19, 2007 - 23:15
Project:freelinking
Version:6.x-1.4
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I found this due to an interaction between TinyMCE and Freelinking. If an HTML entity, like """ is in the freelink such as [[fruit|apples "oranges" lemons]], the link is rendered as """, thus making the entity code visible. A workaround for this particular problem is to submit the post using literal quotes (") with rich text disabled.

#1

tessmonsta - May 19, 2007 - 23:17

Correction:

The link is written in HTML code [[fruit|apples "oranges" lemons]].

#2

tessmonsta - May 19, 2007 - 23:18

GAH! I can't type today...

[[fruit|apples "oranges" lemons]]

#3

Maine - May 23, 2007 - 20:04
Version:4.7.x-1.0» HEAD

This seems to be caused by urldecoding $thetitle in function _freelinking_exists in freelinking.module. Removing urldecode fixes this, but is it safe?

#4

Maine - May 24, 2007 - 17:09
Status:active» patch (code needs work)

Disregard the previous comment - that's irrelevant. The real problem lies elsewhere: special characters need to be decoded before creating the link. Please, check the patch.

AttachmentSize
freelinking.module_0.patch909 bytes

#5

eafarris - July 1, 2008 - 22:38
Status:patch (code needs work)» fixed

Fixed as part of freelinking-6.x-1.3.

#6

Anonymous (not verified) - July 15, 2008 - 22:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#7

JackVillian - July 23, 2008 - 19:29
Version:HEAD» 6.x-1.4
Component:Miscellaneous» User interface
Status:closed» active

Hi Eric,

I'm very new to Drupal, and loving it!

I finally found this page about my problem.

I'm using Freelinking with FCKEditor. When I add this in the content: [[wêreld]] , Drupal does not display anything whatsoever in the view of the document this content is added to.

Further, when I add the following: [[Omgee en "fellowship"]] , Drupal displays it in the view, but when I try to create the new pages content, it only puts "Omgee en " (without the quotes) in the new title line.

Do you have any advice? Am I missing some kind of Ascii table that contains special characters which Drupal needs to look up?

Thanks,
Jacco

#8

eafarris - July 23, 2008 - 22:22

This sounds like it might be a bad interaction between freelinking and FCKEditor. Can you confirm that this still happens when FCKEditor is not part of the input formats? I suspect FCK is encoding the quotes, and freelinking is not playing nice.

#9

JackVillian - July 24, 2008 - 19:01

Eric,

I can confirm, when I deactivate FCKEditor for the wiki user permissions, [[wêreld]] becomes visible again, of course I can't do this, because my users don't know anything about html coding.

BTW, ê is not encoded to & ecirc; either...

The double quotes appear correctly in the new wiki page title only if I replace & quot; with a character " in the html text. FCKEditor had encoded my original " that I typed into the text as & quot;

Let me try this: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/C...

Great! This was the solution! When ProcessHTMLEntities is turned off, all my issues are resolved!

Thanks for putting me on the right track!

Regards,
Jacco

#10

JackVillian - July 24, 2008 - 19:01
Status:active» fixed

#11

Anonymous (not verified) - August 7, 2008 - 19:02
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.