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

WordPress Trac noreply at wordpress.org
Sun Mar 15 04:53:29 UTC 2015


#31645: Press This: Reject relative URLs when scraping source html
--------------------------+-----------------------------
 Reporter:  kraftbj       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Press This    |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 We're relying on the `<link rel="canonical" href=...>` tag for the link
 rendered for a Pressed page. The standard allows relative URLs in that
 field, which are currently being allowed in PT.

 Steps to duplicate:
 1. Create a test html page with
 {{{
 <html>
 <head>
         <link rel="canonical" href="/test.html">
         <title>Test</title>
 </head>
 <body>
         <h1>TEST</h1>
 </body>
 </html>
 }}}

 2. Press that page
 3. Check URL used in the "source" link.

 Expected: An absolute URL
 Actual: Relative URL based on the href tag.

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


More information about the wp-trac mailing list