r4 - 15 Feb 2005 - 02:04:40 - SamHaslerYou are here: TWiki >  Codev Web > IncludeAttachmentWithHttps
Tags:
, create new tag

Implemented: INCLUDE Attachment With https Protocol

Existing functionality:

  1. TWiki does already optimize the INCLUDE of an attached file: The file gets included on the file level, bypassing an http request in case TWiki detects that the URL is in the namespace of file attachments.
  2. TWiki does not yet support the INCLUDE of a URL with https protocol.

That is, an INCLUDE of an attachment does not work if TWiki itself is installed under https. This small enhancement fixes that, it allows the inclusion of .txt and .html attachments under https by reading attached file directly, also if TWiki runs under hhtps.

Index: TWiki.pm
===================================================================
--- TWiki.pm    (revision 3186)
+++ TWiki.pm    (working copy)
@@ -2035,7 +2035,7 @@
     my $rev     = $params{"rev"}      || "";
     my $warn    = $params{"warn"}     || "";

-    if( $incfile =~ /^http\:/ ) {
+    if( $incfile =~ /^https?\:/ ) {
         # include web page
         return handleIncludeUrl( $incfile, $pattern, $theWeb, $theTopic );
     }

Change is in SVN's MainBranch.

A possible enhancement is IncludeUrlWithHttpsProtocol.

Contributors:
-- PeterThoeny - 09 Nov 2004

Discussions

Which release did this go in?

-- SamHasler - 15 Feb 2005

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo