[wp-trac] [WordPress Trac] #54067: Filenames shouldn't hold dots
    WordPress Trac 
    noreply at wordpress.org
       
    Sat Sep  4 01:54:55 UTC 2021
    
    
  
#54067: Filenames shouldn't hold dots
-------------------------+------------------------------
 Reporter:  bedas        |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  minor        |  Resolution:  invalid
 Keywords:               |     Focuses:
-------------------------+------------------------------
Changes (by bedas):
 * keywords:  2nd-opinion =>
 * status:  new => closed
 * resolution:   => invalid
Comment:
 I am not relying on plugins, however, you are right that there was an
 error in my approach.
 I used `<a download="'.$filename.'" href="'.$fileurl.'">handle</a>` (where
 of course the $vars are previously dynamically populated).
 That generates a link where the `download` attribute has a couple dots too
 many in it, and thus creating a downloaded filename of
 `file.name.more.dots`
 By changing that to use another, non dotted filename (stripping them prior
 to usage) resolves the issue.
 Sorry the unnecessary trac ticket.
 Closed as non-issue.
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54067#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list