Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS: No download links #671

Closed
wants to merge 5 commits into from
Closed

IIS: No download links #671

wants to merge 5 commits into from

Conversation

owaincuvelier
Copy link
Contributor

IIS servers don't display download links.

screen shot 2015-01-08 at 14 32 29

@owaincuvelier
Copy link
Contributor Author

Reports of this are stacking up. I'll have a bash at a patch.

@pdewouters
Copy link
Contributor

as discussed, assigning to you @owaincuvelier and @willmot to help. Let me know if you manage to fix any of these IIS bugs so we can release a bugfix version with also #687

@owaincuvelier
Copy link
Contributor Author

So this is fairly low-level but I've found that:

get_path() is returning a path with back slashes, and it's being strpos'd agains't this path, which contains only forward slashes. So the check fails.

Windows is able to handle both / and .

Will post another update here as I have run mid-way through looking at the code.

@willmot
Copy link
Contributor

willmot commented Jan 26, 2015

Cool, so probably get_path should run the path through HM_Backup::conform_dir before returning.

@owaincuvelier
Copy link
Contributor Author

That's what j was just looking into before I left 


Sent from Mailbox

On Mon, Jan 26, 2015 at 6:06 PM, Tom Willmot notifications@github.com
wrote:

Cool, so probably get_path should run the path through HM_Backup::conform_dir before returning.

Reply to this email directly or view it on GitHub:
#671 (comment)

@willmot
Copy link
Contributor

willmot commented Jan 27, 2015

Instead of running hmbkp_path through conform_dir on output we should instead run the path through conform_dir inside HMBKP_Path as early as possible

@pdewouters
Copy link
Contributor

@owaincuvelier can you test on IIS please? Thanks :)

$default = array();
}

$upload_dir = wp_upload_dir();

if ( false === $fallback = glob( $upload_dir['basedir'] . '/backupwordpress-*-backups', GLOB_ONLYDIR ) ) {
if ( false === $fallback = glob( $upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'backupwordpress-*-backups', GLOB_ONLYDIR ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for DIRECTORY_SEPARATOR as Windows supports / fine.

@pdewouters
Copy link
Contributor

As discussed, going to give this a little more thought

@willmot
Copy link
Contributor

willmot commented Jan 28, 2015

This actually seems to have been fixed by #667

@pdewouters
Copy link
Contributor

screen shot 2015-01-28 at 08 32 50

You're right, just installed BWP latest master on my Webmatrix install, and I can download backups

@pdewouters pdewouters deleted the iis-download branch March 30, 2015 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants