[Pmwiki-users] creating links automatically for javascript: URLs (ie, bookmarklets)??

Patrick R. Michaud pmichaud
Sat Aug 9 13:39:06 CDT 2003


Sure!  If you want to allow javascript: URLs in the MyGroup wikigroup, then 
add the following to local/MyGroup.php:

   <?php
   $UrlMethodPattern .= '|javascript';
   ?>

After doing this, urls of the form javascript:xxx will be converted
into links, but only in the MyGroup wikigroup.  

Pm


On Sat, Aug 09, 2003 at 01:29:39PM -0500, Matt Vance wrote:
> I've started to create a WikiTrails presentation about bookmarklets (small 
> javascript programs contained in web browser bookmarks) and I would like to 
> include some example bookmarklets in the presentation pages.
> 
> It would be easiest if I could configure PmWiki to create links 
> automatically for "javascript:" URLs, but maybe that would be a security 
> risk as someone could potentially add malicious javascripts to pages.  Is 
> there a way that PmWiki could create the links, but also confine the 
> capability only to certain WikiGroups?  Am I best off just including the 
> bookmarklets as $InlineReplacements in my local.php file?
> 
> Thanks,
> Matt
> 
> p.s. -- For more information about just what a bookmarklet is, see this 
> page:  http://www.bookmarklets.com/tools/data/index.phtml
> 
> 
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com



More information about the pmwiki-users mailing list