Fork me on GitHub
Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

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
open:config
AuthorCSS
opera:config#AuthorDisplayMode|AuthorCSS
Opera Button
Star
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
Thanks
Tagged:

Comments

  • 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.