From: Steve W. <sw...@wc...> - 2000-10-10 02:13:53
|
Well, this might not count for much, but the http: solution does not work in Emacs' w3 mode. This makes me nervous that it will break other browsers... it also won't let me use lwp-rget to write a regression test, since the URLs all come out like this: [swain@localhost tmptmp]$ lwp-rget --verbose http://127.0.0.1:8080/phpwiki/ Use of uninitialized value at /usr/bin/lwp-rget line 222. START = http://127.0.0.1:8080/phpwiki/ MAX_DEPTH = 5 MAX_DOCS = 50 PREFIX = http://127.0.0.1:8080/phpwiki/ http://127.0.0.1:8080/phpwiki/ ............................. index.html http:index.php ............................................ *outsider* http://127.0.0.1:8080/phpwiki/images/wikibase.png ......... wikibase.png http:index.php?full=FrontPage ............................. *outsider* http:index.php?WikiWikiWeb ................................ *outsider* http:index.php?HowToUseWiki ............................... *outsider* http:index.php?AddingPages ................................ *outsider* http:index.php?SandBox .................................... *outsider* http:index.php?RecentVisitors ............................. *outsider* http:index.php?RecentChanges .............................. *outsider* http:index.php?MostPopular ................................ *outsider* http:index.php?ReleaseNotes ............................... *outsider* http:index.php?edit=FrontPage ............................. *outsider* http:index.php?info=FrontPage ............................. *outsider* http:index.php?diff=FrontPage ............................. *outsider* http:index.php?FindPage ................................... *outsider* index.html I'm looking for another solution. Perhaps the way the diffurl is encoded can be changed: if($isnewpage) { $newpage[$k++] = "\t* [$pagename] (new) ..... $remoteuser\r"; } else { $diffurl = "$ScriptUrl?diff=" . rawurlencode($pagename); $newpage[$k++] = "\t* [$pagename] ([diff|$diffurl]) ..... $remoteuser\r"; } but I don't think there's an easy answer there either, and I don't want to kluge it with an if/else... sw On Tue, 10 Oct 2000, Neil Brown wrote: > On Monday October 9, aho...@in... wrote: > > Steve, > > > > > This patch sounds like a good idea: no default server name. Another "why > > > didn't I think of that?" idea. Anybody see any holes in it? > > > > this breaks the diff links in RecentChanges. > > Unless we invent a new wiki-syntax they will remain broken. > > > > /Arno > > Ahhh.. that was the problem with my diff links. I hadn't had a chance > to look into them, and it didn't click that the break might be related > to that change. > Instead of > $ServerAddress = ""; > use > $ServerAddress = "http:"; > > That has the same effect of using relatvie URI's, doesn't break the > diff links in RecentChanges > > NeilBrown > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/mailman/listinfo/phpwiki-talk > ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |