Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#285 closed defect (bug) (fixed)

Backslashes, upload.php and Windows IIS servers

Reported by: bard09's profile Bard09 Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.2
Component: Administration Keywords:
Focuses: Cc:

Description

When entering in options for the Destination Directory on Windows IIS servers, you usually enter something like this:

C:\Inetpub\website\etc\wordpress\wp-content

When you enter this, the above text is posted to the database. But when it is parsed out for the options page and upload.php (and any plugin that uses those variables), the backslashes disappear, and it looks like this:

C:InetpubWatercascadestroywordpresswp-content

Not fun. You can't use upload.php this way.

I tried to get around this by entering the HTML symbol equivalent, which will echo correctly on the options page, but when you visit upload.php Wordpress displays an error about how the directory isn't availalbe to upload, etc.

A temporary fix is to do something like this:

../wp-content

But it is not ideal, as plugins access the directory information differently.

I am guessing the solution is as simple as messing around with stripslashes() and the like.

Change History (3)

#2 @Bard09
19 years ago

Also, you can do double backslashes as a fix, ie:

C:
Inetpub
website
etc
wordpress
wp-content

But if this process can be made simpler for the end-user, I am sure that would be appreciated. Not everyone is familiar with the PHP backslash. I'd completely forgotten about it when entering this bug.

You can downgrade the priority of this bug if you want. It's only annoying for new users or those who don't understand PHP.

#3 @markjaquith
18 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Works for me now... must have been fixed somewhere along the line.

Note: See TracTickets for help on using tickets.