Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 02:51 pm EST
Geeklog Forums
Broken JS link after upgrade to 1.3.10
Status: offline
ronack
Forum User
Full Member
Registered: 05/27/03
Posts: 612
I had a link like this
It doesn't work now. What's different?
Text Formatted Code
<a href="void(window.open('http://domain/page.php', '', 'width=720,height=500, location=no, menubar=no, status=yes, toolbar=no, scrollbars=yes, resizable=yes'))">Click here </a> It doesn't work now. What's different?
9
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
javascript: is not in the list of allowed protocols and is therefore removed.
$_CONF['allowed_protocols'] = array ('http:', 'https:', 'ftp:');
Although I don't think it would be a good idea to add it there ...
bye, Dirk
Text Formatted Code
// list of protocols that are allowed in links $_CONF['allowed_protocols'] = array ('http:', 'https:', 'ftp:');
Although I don't think it would be a good idea to add it there ...
bye, Dirk
8
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The protocol check is part of the kses filter, so it would apply to all places where that filter is used. I.e. articles, comments, static pages (if you enable HTML filtering for static pages), the forum (if configured to use Geeklog's HTML filter instead of its own), etc.
bye, Dirk
bye, Dirk
8
14
Quote
All times are EST. The time is now 02:51 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content