[wp-trac] [WordPress Trac] #31645: Press This: Reject relative URLs when scraping source html

WordPress Trac noreply at wordpress.org
Sun Mar 15 18:15:35 UTC 2015


#31645: Press This: Reject relative URLs when scraping source html
--------------------------+--------------------
 Reporter:  kraftbj       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  Press This    |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by azaozz):

 Thinking we should specifically reject `<link rel="canonical" ...>` URLs
 that are not absolute or protocol relative. For the rest (which are mostly
 image `src`), we should try to prepend the domain if they are root-
 relative. (Still not sure if should do that in PHP or JS, needs more
 testing).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31645#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list