Support » Plugin: Google XML Sitemaps » External XSLT adds trailing slash

  • 0xd34db33f

    (@0xd34db33f-1)


    The latest version automatically adds a trailing slash to external XSL files, which makes my site 404 this URI. The code is in sitemap-ui.php.

Viewing 1 replies (of 1 total)
  • 0xd34db33f

    (@0xd34db33f-1)

    --- /tmp/sitemap-ui.php	2018-12-20 09:48:49.661319627 -0800
    +++ sitemap-ui.php	2018-12-19 10:47:20.000273731 -0800
    @@ -308,7 +308,7 @@
     							if(!empty($_POST[$k])) $_POST[$k] = trailingslashit($_POST[$k]);
     						} else if($k=="sm_b_style") {
     							$_POST[$k] = esc_url_raw(trim(self::escape($_POST[$k])));
    -							if(!empty($_POST[$k])) $_POST[$k] = trailingslashit($_POST[$k]);
    +							#if(!empty($_POST[$k])) $_POST[$k] = trailingslashit($_POST[$k]);
     						}
     						$this->sg->SetOption($k,(string) $_POST[$k]);
     					} else if($k == "sm_b_time") {
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.