-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item1766: fixup for debian package using ShorterUrls
git-svn-id: http://svn.foswiki.org/trunk@4769 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
SvenDowideit
authored and
SvenDowideit
committed
Sep 5, 2009
1 parent
8cecf20
commit 1b5fe1b
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
00_More_Extensions_warning | ||
|
||
01_configure_logo.dpatch | ||
Item1766-redirect_cache.dpatch |
23 changes: 23 additions & 0 deletions
23
core/tools/pkg/debian/patches/Item1766-redirect_cache.dpatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /bin/sh /usr/share/dpatch/dpatch-run | ||
## Item1766-redirect_cache.dpatch by <root@quad.home.org.au> | ||
## | ||
## All lines beginning with `## DP:' are a description of the patch. | ||
## DP: fixes root login redirect issues in 1.0.6 | ||
|
||
@DPATCH@ | ||
|
||
Index: lib/Foswiki.pm | ||
=================================================================== | ||
--- lib/Foswiki.pm (revision 4728) | ||
+++ lib/Foswiki.pm (working copy) | ||
@@ -899,6 +899,9 @@ | ||
# Redirecting from a post to a get | ||
my $cache = $this->cacheQuery(); | ||
if ($cache) { | ||
+ if ($url eq '/') { | ||
+ $url = $this->getScriptUrl(1, 'view'); | ||
+ } | ||
$url .= $cache; | ||
} | ||
} | ||
|