Closed (fixed)
Project:
Nice Menus
Version:
7.x-2.1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2013 at 23:14 UTC
Updated:
22 May 2013 at 02:20 UTC
Hey, hoping to get some entities used in paths pretty commonly with void_menu module controlled links.
Original:
$clean_path = str_replace(array('http://', 'www', '<', '>', '&', '=', '?', ':', '.''), '', $menu_item['link']['href']);
Updated:
$clean_path = str_replace(array('http://', 'www', '<', '>', '&', '=', '?', ':', '.', ';', '(', ')', ' '), '', $menu_item['link']['href']);
This accounts for javascript methods executed from links. Ex:
javascript: myFunction('something');
Currently becomes an invalid class:
menu-path-javascript myFunction(something);
Thanks :)
Comments
Comment #1
xiukun.zhou commentedhi WillHall. Thanks
This problem has been fixed in 7.x-2.x-dev See: http://drupal.org/node/1710492
use drupal_html_class