The attached patch makes a link of the URL that is given below each file description input box in the attachment fieldset.
| Comment | File | Size | Author |
|---|---|---|---|
| upload_link.patch | 1.3 KB | kkaefer |
The attached patch makes a link of the URL that is given below each file description input box in the attachment fieldset.
| Comment | File | Size | Author |
|---|---|---|---|
| upload_link.patch | 1.3 KB | kkaefer |
Comments
Comment #1
Stefan Nagtegaal commentedCan't we use l() here?
So instead of:
We do something like:
Comment #2
kkaefer commentedThe l() function is for Drupal internal links. See http://drupaldocs.org/api/head/function/l.
Comment #3
chx commentedAnd external urls...
Comment #4
kkaefer commentedOk, but I don't see any sense in using l() for this purpose. We know that the URL doesn't contain any XSS chunks, nor HTML tags or attributes.
Comment #5
gerhard killesreiter commentedWe like to use the APIs we provide.
Comment #6
dopry commentedIs there even a sane reason to allow users to click on a link that will take them away from the edit page?
Or it it for copy link location and paste?
Comment #7
kkaefer commenteddopry, you're probably right. Users that know what to do will copy & paste, others will get confused by this and probably even loose data. Set to wontfix.