Opened 5 years ago
Closed 5 years ago
#6423 closed defect (bug) (fixed)
Implicit restriction on the name of ROOT directory
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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 (1)
Change History (3)
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.

A patch to the bug