| Project: | Link |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
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.
#2
heh ... oh man, sorry second picture is for the thirth setting. Here comes the correct 2nd picture for the setting of the thirth picture ...
#3
And here comes the patch ...
#4
huh? ok ... obviously some coding standart failure I found later ... Here is an optimized version without trailing spaces (hopefully)
#5
ok, after some wishes from IRC :-) ... here a version with better readable code but slidely more kb ;-)
#6
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 ...
#7
committed and pushed to HEAD. (--dev)
#11
Automatically closed -- issue fixed for 2 weeks with no activity.
#12
thanks Digidog :-P :-D :-D
#13
The patch in 5 and now in HEAD misspells automatically. Here's a patch (on 7.x-1.x) to fix it.