When visiting the xmlsitemap settings page, the directory prefix shown for the xmlsitemap_path setting is incorrect when the default file scheme is set to private rather than public.

Files: 
CommentFileSizeAuthor
#3 xmlsitemap_settings_form-field_prefix-1248084-3.patch1.13 KBpillarsdotnet
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es). View
#2 xmlsitemap_settings_form-field_prefix-1248084-1.patch1.16 KBpillarsdotnet
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es). View
#1 xmlsitemap_settings_form-field_prefix-1248084-1.patch0 bytespillarsdotnet
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es). View

Comments

pillarsdotnet’s picture

FileSize
0 bytes
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es). View

The attached patch ensures that the proper directory prefix is shown, regardless of the default file scheme.

pillarsdotnet’s picture

Status: Active » Needs review
FileSize
1.16 KB
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es). View

Really, this time.

pillarsdotnet’s picture

FileSize
1.13 KB
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es). View

Should have used file_default_scheme().

Dave Reid’s picture

Dave Reid’s picture

Status: Needs review » Fixed

I actually decided to base this off using file_build_uri() without realpath involved as that's kind of what core does already.
http://drupalcode.org/project/xmlsitemap.git/commit/6f4b6f0

Automatically closed -- issue fixed for 2 weeks with no activity.