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
Correction:
The link is written in HTML code [[fruit|apples "oranges" lemons]].
#2
GAH! I can't type today...
[[fruit|apples "oranges" lemons]]
#3
This seems to be caused by urldecoding $thetitle in function _freelinking_exists in freelinking.module. Removing urldecode fixes this, but is it safe?
#4
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.
#5
Fixed as part of freelinking-6.x-1.3.
#6
Automatically closed -- issue fixed for two weeks with no activity.
#7
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
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
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
#11
Automatically closed -- issue fixed for two weeks with no activity.