Open ctgraham opened 4 months ago
The Playlist uses a javascript: protocol to execute:
javascript:
https://github.com/ulsdevteam/islandora_solution_pack_playlist/blob/8941797df7b02f11b7f15b5472939735b276ee13/includes/utilities.inc#L65
But Drupal now disallows this protocol in the l() function:
l()
https://api.drupal.org/api/drupal/includes%21common.inc/function/l/7.x
via drupal_strip_dangerous_protocols():
drupal_strip_dangerous_protocols()
https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_strip_dangerous_protocols/7.x
The best approach might be to use the #attribute of l() to formulate an onClick. Quickest is to just manually form the a tag.
#attribute
onClick
a
The Playlist uses a
javascript:
protocol to execute:https://github.com/ulsdevteam/islandora_solution_pack_playlist/blob/8941797df7b02f11b7f15b5472939735b276ee13/includes/utilities.inc#L65
But Drupal now disallows this protocol in the
l()
function:https://api.drupal.org/api/drupal/includes%21common.inc/function/l/7.x
via
drupal_strip_dangerous_protocols()
:https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_strip_dangerous_protocols/7.x