Closed (fixed)
Project:
Go - url redirects
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2009 at 15:19 UTC
Updated:
3 Nov 2009 at 18:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
marshallsalinger commentedI should note that this is only an issue when generating go links on the fly with the
<go href="http://somewhere.com" title="Somewhere">Somewhere</go>syntax.Comment #2
hass commentedCould you provide a raw example of the code you are trying for repro, please? Links like #1 must work.
Comment #3
hass commentedAside - what case are you referring to that say this issue is fixed?
Comment #4
hass commentedLooks like I've broken this in the latest release. The reason is
check_plain($link[2]). You are able to remove the check_plain() and the issue should be solved. Are you able to verify this, please?I'm not sure if this may open up the module for a XSS bug... need to think more about it, but I believe it doesn't.
to:
This should fix such a code:
Comment #5
hass commentedLooking on this code we should also return $link[2] if the go link have no attributes.
Than we will get for
Comment #6
vOOd commentedI set the priority to critical as I mainly use go with img links, and as long as this issue isnt fixed, I cant use this module :|
so here is an example that doesnt work :
image will be displayed, but u cant click it
I tryed both ur fixes, neither work :(
Comment #7
hass commented@vOOd: can you try above fix in #5 and report back, please? You *need* to upgrade... I can only tell you the bugs fixed in v1.1 are very very critical!
Comment #8
vOOd commentedas I said, I already tryed both #4 and #5 and they dont work.
the go tags arent processed. Image cant be clicked and when looking at the source code we have
<go href="xxx"><img src...></go>instead of a href ...btw what do u mean by "you need to upgrade" ?
And tell me if Im doing wrong when trying ur fixes : I edit gotwo.module, then upload it, then create a go link. Do I need to deactivate the module or anything else ?
Comment #9
hass commentedSounds like a brand new install!? You may have missed to enable the gotwo filter for your content types if the go tags are not changed to normal links.
Comment #10
vOOd commentedcome on, I enabled it... Im not that stupid.
go tags work with that way :
<go href="stuff">text</go>WORKING : source code =<a href="stuff">text</a>but they do NOT work with img tag instead of text :
<go href="stuff"><img .../></go>NOT WORKING : source code =<go href="stuff"><img .../></go>the result is go tag isnt processed, it is displayed in the source code, its not changed with a href instead of go href. is it clear enough ??
try it yourself, you will see...
Comment #11
hass commentedProvide a patch for the regex, please.
Comment #12
vOOd commentedwell Im not a developer, only a user, so I dont know how to fix this.
Im just reporting the bug
Comment #13
hass commentedPatch attached needs review, but seems working for me.
Comment #14
hass commentedComment #15
hass commented