Fork me on GitHub
Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
Important security fix: 2.1.10, released 4 May.

Html Formatter 1.5 doesn't work With some links

maarmaar New
edited September 2010 in Vanilla 1.0 Help
I using opera posted some links(That's Only for Opera)
for example
Opera Button
opera:/button/Highlight bookmark | Add to bookmarks,,,,Missing bookmark
These Links doesn't work with Html Formatter 1.5...
If I modify default.php...but I don't understand these codes(how to?)
I think should better support Opera


  • Inside the plugin's default.php, find this line:
    $Html_AllowedProtocols = array('http', 'https', 'ftp', 'news', 'nntp', 'feed', 'gopher', 'mailto');

    Turn it into:
    $Html_AllowedProtocols = array('http', 'https', 'ftp', 'news', 'nntp', 'feed', 'gopher', 'mailto', 'opera');

    Whether allowing this protocol is advisable I do not know - I'm not familiar with Opera's inner workings. Make sure this doesn't contain any potential vulnerability if some unsavory character tries to use it (ask at the Opera forum?).
  • maarmaar New
    edited August 2006
    Thanks mary
    Now works fine(added "opera" protocol)
    About security problems,Opera Internal commands and JavaScript(ECMAScript)
    You can see the command line when adding a button(RIght click or at Status bar), so it's up to you to decide whether executing that command.
    or not.
This discussion has been closed.