I user cvs DRUPAL 4.7
// $Id: disknode.module,v 1.8.2.25 2006/07/28 21:38:57 elmuerte Exp $

I use https (securepages module) for pages like
node/add*
node/*/edit
user/*
admin*
img_assist/*
disknode/*

When I use the Internet Explorer and I edit a node, I get the error message
"This page contains both secure and nonsecure items. Do you want to display the nonsecure items?"

The problem is an absolute URL on pages with disknode-forms.
When I replace line 250
<script type="text/javascript" src="${base_url}/modules/disknode/disknode.js"></script>
with
<script type="text/javascript" src="/modules/disknode/disknode.js"></script>
the problem is solved.

Why is the module disknode using absolute URL's?

CommentFileSizeAuthor
#2 disknode.fix_js_location.diff1.77 KBmooffie

Comments

AlanT’s picture

The problem with the code change above is that it assume that Drupal is installed in the root directory, which it may not be.

A better solution would be to insure that SecurePages changes the base URL variable on encrypted pages.

mooffie’s picture

Status: Needs review » Closed (duplicate)
StatusFileSize
new1.77 KB