• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5113: File urls no longer translate 2 slashes to 5

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Links to locally available machines used to be automatically translated from file://amachine to file://///amachine

This makes firefox work with locallinks plugins allowing intranet links to internal windows shares to work.

Without this ability my intranet TWiki will die which would be very upsetting.

I have previously added this code into Render.pm

lib/TWiki/Render.pm:

# Firefox implements URIs properly which means it
# wants file:///// for links to local files.
# People however want to write file:// and IE lets both
# work so this encourages people in their bad behaviour.
# Note that this needs a user.js on Firefox to allow the
# link to succeed.
$url =~ s%file://([^/]*)%file://///$1%g;

This was in the sub external_link just above the #SMELL comment (which is still there in the beta I am running).

-- TWiki:Main/PamelaDuffy - 11 Dec 2007

I have done a test at TWiki:Sandbox.TestTwoOrFiveFileLinkSlashes - no rewriting takes place.

This is not something that was previously in TWiki released code, but a useful enhancement.

Any thoughts on other browsers / risks?

Degrading to enhancement.

-- TWiki:Main.SteffenPoulsen - 12 Dec 2007

ItemTemplate
Summary File urls no longer translate 2 slashes to 5
ReportedBy TWiki:Main.PamelaDuffy
Codebase 4.2.0
SVN Range TWiki-4.2.0-beta3, Thu, 01 Nov 2007, build 15452, Plugin API version 1.2
AppliesTo Engine
Component

Priority Enhancement
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-12-12 - SteffenPoulsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback