Ticket #6423 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

Implicit restriction on the name of ROOT directory

Reported by: nh7a Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version: 2.5
Severity: blocker Keywords:
Cc:

Description

There is an implicit restriction on the name of ROOT directory for Wordpress due to a simple bug in wp-includes/classes.php.

For example, if your ROOT directory is, say, "/en" and Permalinks configuration is other than default (so that Rewrite check will happen), you cannot use Input Field Settings of cforms because $req_uri, which the AJAX URL used by cforms, say, /en/wp-content/plugins/cforms/js/include/textfield.php, won't match to $self, which will mistakenly be wp-contt/plugins/cforms/js/include/textfield.php. Notice wp-contt should be wp-content.

Attachments

classes.php.patch (439 bytes) - added by nh7a on 03/27/08 18:02:53.
A patch to the bug

Change History

03/27/08 18:02:53 changed by nh7a

  • attachment classes.php.patch added.

A patch to the bug

03/27/08 18:14:50 changed by ryan

Looking at [3370], it seems that line should have been removed with that changeset. The patch looks good. I'll test it out on a few different setups since changes to this area can cause high impact breakage.

03/27/08 20:10:29 changed by ryan

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

(In [7551]) Remove unanchored string replacement. Props nh7a. fixes #6423