Intranet Link to Lotus Notes

03.02.2010
 von Pascal
 | 0 Kommentare

If you want to add a menu entry with a link to a lotus notes application then the error message "The path 'notes://path' is either invalid or you do not have access to it." will show up.

The problem is that Drupal does not allow the Protocol "notes" by default.

The filter module will check whether the protocol is allowed or not in the function filter_xss_bad_protocol.

<?php
variable_get
('filter_allowed_protocols', array('http''https''ftp''news''nntp''telnet'
'mailto''irc''ssh''sftp''webcal''rtsp')));
?>

You have to add "notes" to this array. Do not change the code in the module. Set your own configuartion variable in the database table 'variables'. Either edit or if it does not exist add a new entry of 'filter_allowed_protocols'.

The value is a serialized string of the array.

<?php
INSERT INTO 
`variable` (`name`, `value`) VALUES('filter_allowed_protocols''a:13:{i:0;s:4:"http";i:1;s:5:"https";i:2;s:3:"ftp";i:3;s:4:"news";i:4;s:4:"nntp";i:5;s:6:"telnet";
i:6;s:6:"mailto";i:7;s:3:"irc";i:8;s:3:"ssh";i:9;s:4:"sftp";i:10;s:6:"webcal";
i:11;s:4:"rtsp";i:12;s:5:"notes";}'
);
?>

Done.

Bild-CAPTCHA
Bitte die Zeichen die auf dem Bild zu sehen sind eingeben.