Permalink
Browse files

Item529: The root script problem was fixed in Item518

But it turns out that the fix_local_links was still living in the
the TWiki 


git-svn-id: http://svn.foswiki.org/trunk@1479 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
KennethLavrsen KennethLavrsen
KennethLavrsen authored and KennethLavrsen committed Dec 20, 2008
1 parent 6d7d437 commit c1e3717367865f09a8a7d72a95750700d569e6b8
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/tools/fix_local_links.pl
@@ -33,7 +33,7 @@ BEGIN
local $/;
my $topichtml = <>;
$topichtml =~ s|(?<=[?;&])TWIKISESSID=\w*[;&]?||g;
$topichtml =~ s|(?<=[?;&])FOSWIKISESSID=\w*[;&]?||g;
# Replace the header with a minimal header to avoid all references to other files
$topichtml =~ s|<head>.*?<title>\s*(\S*).*?</title>.*?</head>|<head><title>$1</title></head>|gs;
@@ -42,10 +42,10 @@ BEGIN
$topichtml =~ s|<img.*?>||g;
# Changes all links to attachments to twiki.org
$topichtml =~ s|$Foswiki::cfg{DefaultUrlHost}$Foswiki::cfg{PubUrlPath}/*|http://twiki.org/p/pub/|g;
$topichtml =~ s|$Foswiki::cfg{DefaultUrlHost}$Foswiki::cfg{PubUrlPath}/*|http://foswiki.org/pub/|g;
# Changes all links to topics to twiki.org
$topichtml =~ s|($Foswiki::cfg{DefaultUrlHost}$Foswiki::cfg{ScriptUrlPath})/*|http://twiki.org/cgi-bin/|g;
$topichtml =~ s|($Foswiki::cfg{DefaultUrlHost}$Foswiki::cfg{ScriptUrlPath}/view)/*|http://foswiki.org/|g;
#This URL param is not wanted when we link to twiki.org
$topichtml =~ s/href="\?skin=plain#/href="#/g;

0 comments on commit c1e3717

Please sign in to comment.