diff options
Diffstat (limited to 'extensions/SiteMapIndex/Extension.pm')
-rw-r--r-- | extensions/SiteMapIndex/Extension.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/SiteMapIndex/Extension.pm b/extensions/SiteMapIndex/Extension.pm index f36fa8c81..23c460fb8 100644 --- a/extensions/SiteMapIndex/Extension.pm +++ b/extensions/SiteMapIndex/Extension.pm @@ -134,7 +134,7 @@ sub _fix_robots_txt { { local $/; $current_contents = <$current_fh> } $current_fh->close(); - return if $current_contents =~ m{^Allow: \/\*show_bug\.cgi}ms; + return if $current_contents =~ /^Sitemap:/m; my $backup_name = "$cgi_path/robots.txt.old"; print get_text('sitemap_fixing_robots', { current => $robots_file, backup => $backup_name }), "\n"; |