Extension:NetworkLink

From MediaWiki.org

Jump to: navigation, search
Zeichen 206.svg WARNING: the code or configuration described here poses a major security risk.

Problem: Vulnerable to Cross-site scripting attacks, because it passes user input directly to the browser. This may lead to user accounts being hijacked, among other things.
Solution: strictly validate user input and/or apply escaping to all characters that have a special meaning in HTML
Signed: Duesentrieb 21:20, 22 March 2007 (UTC)

       

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
Link

Release status: unknown

Description Creates a link to a network location.
Author(s)  Aretai
Last Version  1.0.0 (2007-02-01)
MediaWiki  1.6.7 and above
License No license specified
Download Extension:NetworkLink/NetworkLink.php

check usage (experimental)

Note: This extension is on begining of development and contain security risks, it's not suggested to use it on a public Wiki.

Contents

[edit] Introduction

Sometimes it's necessary to link to a network drive or a file on LAN. This extension tries to simplify this process and create a link just on copy-paste basis.

[edit] Features

  • Options to specify: parent, self, etc. behaviour.

[edit] Installation & Configuration

  1. Download Link.php and place it in your 'extensions' folder.
  2. Add these lines to LocalSettings.php
# Activate Link extension
require_once("extensions/Link.php");

[edit] Usage

Copy the network location you want to make link to, then paste it between tags:

<link>Network location</link>

You can also specify behaviour of a new window:

<link target="blank">Network location</link>

Will open a new window (and is default). Other options are: self, top, parent.

[edit] Alternatives

[edit] Misc

It seems that this extension is not working on Firefox.

It seems to mess up the display for MediaWiki 1.6.9

[edit] Feedback

Use the discussion page for feedback, questions, request of new features and bug reports.