node titles with javascript reserved characters break the link and invalidate page

bangpound - May 12, 2008 - 02:08
Project:Share
Version:5.x-2.0-alpha2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

node titles are are inserted into the share link code without being filtered first. when a node title has quotation marks in it, this causes the link for that node to break and the page to be invalid XHTML.

AttachmentSize
share-title-encode.patch780 bytes

#1

bangpound - May 12, 2008 - 02:09

Whoops. I missed another instance of the same mistake. This patch corrects both of them.

AttachmentSize
share-title-encode.patch1.24 KB

#2

scottrigby - July 10, 2008 - 00:54

Hi,
I got the following results in my terminal window while patching:

patching file share.module
Hunk #1 succeeded at 264 with fuzz 1 (offset 1 line).
Hunk #2 succeeded at 336 with fuzz 1 (offset 2 lines).

So not exactly sure what that means, but it seemed to do the trick! Thanks :)

#3

greenSkin - July 26, 2008 - 23:05
Status:patch (code needs review)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.