As mentioned here http://drupal.org/node/1366628#comment-5564012 from tomceek correctly, the solution to solve the issue #1366628: Warning: strpos() expects parameter 1 to be string, array given in _link_sanitize()...Line 509 of link.module. is rather an option than a whole take off or cut of failing code, since some may would like to play around with it a little bit more.

But finally I came to the conclusion that it makes more sense to better inject a more "complete" solution for an optional automatic rel removal if link is internal or external (depending on settings). By default the setting is to leave rel as set up before.

This way it makes it possible to decide for best practicees on the project with links from the admins side.

Comments

dqd’s picture

Here are some screenshots how the change works and the patch follows. EDIT: the last picture should be shown first and then the 1. 2. and 3th. to understand the setting.

dqd’s picture

StatusFileSize
new160.24 KB

heh ... oh man, sorry second picture is for the thirth setting. Here comes the correct 2nd picture for the setting of the thirth picture ...

dqd’s picture

And here comes the patch ...

dqd’s picture

huh? ok ... obviously some coding standart failure I found later ... Here is an optimized version without trailing spaces (hopefully)

dqd’s picture

Status: Active » Needs review
StatusFileSize
new2.66 KB

ok, after some wishes from IRC :-) ... here a version with better readable code but slidely more kb ;-)

dqd’s picture

Status: Needs review » Reviewed & tested by the community

ok, tested on 4 stages with different modules installed and different Drupal 7.x versions on Linux and Windows server. I would say ... for such a radios/form addon patch ... I can take it as "tested" to get the stuff in tonight ...

dqd’s picture

Status: Reviewed & tested by the community » Fixed

committed and pushed to HEAD. (--dev)

Status: Fixed » Closed (fixed)

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

dqd’s picture

thanks Digidog :-P :-D :-D

jsagotsky’s picture

StatusFileSize
new834 bytes

The patch in 5 and now in HEAD misspells automatically. Here's a patch (on 7.x-1.x) to fix it.