Closed (won't fix)
Project:
Vote Up/Down
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2008 at 12:04 UTC
Updated:
11 Jun 2010 at 09:07 UTC
It has been reported earlier that using a bookmarklet with storylink causes the ampersand to be escaped.
I suggest the following patch to fix it:
--- vote_storylink.module.orig 2008-02-26 07:00:36.000000000 -0500
+++ vote_storylink.module 2008-02-26 06:52:51.000000000 -0500
@@ -142,7 +142,7 @@
$form['vote_storylink_url'] = array(
'#type' => 'textfield',
'#title' => t('URL'),
- '#default_value' => $node->vote_storylink[0]['url'],
+ '#default_value' => htmlspecialchars_decode($node->vote_storylink[0]['url']),
'#maxlength' => 256,
'#required' => TRUE,
'#description' => t('The URL/address of the story.'),
Any comments?
Comments
Comment #1
Cromicon commentedI tried this but without the function specified in line 145 ( htmlspecialchars_decode) it doesn't work.
Comment #2
Cromicon commentedOk fixed it - I'm using php without that function it seems so here is a fix that works with php4 anyway.
Replace line 145 (as above) from:
'#default_value' => $node->vote_storylink[0]['url'],to
'#default_value' => htmlspecialchars_decode_php4($node->vote_storylink[0]['url']),Add a new function at the end of the .module script (line 570 for me)
Thank you Presscue for the pointer.
Comment #3
marvil07 commentedPlease take a look to the update on the project page, now
5.xis not-really-maintained.If you think your question is still applicably to the last recommended version(
6.x-2.x) please move the version accordingly and reopen it.