Ticket #4001 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

clean_url() adds "http://" to relative links

Reported by: donncha Assigned to: anonymous
Priority: high Milestone: 2.0.10
Component: General Version: 2.0.10
Severity: normal Keywords:
Cc:

Description

clean_url() adds 'http://' to relative links like those found in the upload form. This patch checks if the first character is '/' before adding the protocol.

Attachments

patch.diff (0.7 kB) - added by donncha on 03/20/07 11:31:38.

Change History

03/20/07 11:31:38 changed by donncha

  • attachment patch.diff added.

03/20/07 12:14:32 changed by donncha

Hmm, that patch doesn't fix links to scripts in current directory. The edit link in wp-admin/users.php is broken.

03/20/07 17:51:38 changed by foolswisdom

Likely relates to #3983.

03/21/07 00:29:42 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [5065]) Don't add http:// to relative links. Props donncha. fixes #4001

03/21/07 00:34:56 changed by ryan

(In [5066]) Don't add http:// to relative links. Props donncha. fixes #4001 for 2.1

03/21/07 00:38:07 changed by ryan

(In [5067]) Don't add http:// to relative links. Props donncha. fixes #4001 for 2.0

03/21/07 03:17:34 changed by ryan

  • status changed from closed to reopened.
  • resolution deleted.

Reopen to fix urls relative to current directory.

03/21/07 03:17:44 changed by ryan

  • version set to 2.0.10.
  • milestone changed from 2.2 to 2.0.10.

03/21/07 06:23:24 changed by ryan

(In [5072]) clean_url only REQUEST_URI to avoid breaking the edit link. see #4001

03/21/07 21:49:34 changed by ryan

(In [5073]) clean_url only REQUEST_URI to avoid breaking the edit link. see #4001

03/23/07 01:45:26 changed by ryan

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [5088]) Don't prepend protocol to relative links. fixes #4017 #4001 for trunk

03/23/07 02:57:21 changed by ryan

(In [5091]) Don't prepend protocol to relative links. fixes #4017 #4001 for 2.1