Commit 7ddbb873 authored by git's avatar git Committed by frjo
Browse files

Issue #2335257: Use strip_tags() on current, previous, next and close settings.

parent abe8a809
...@@ -178,10 +178,10 @@ function _colorbox_doheader() { ...@@ -178,10 +178,10 @@ function _colorbox_doheader() {
'slideshowSpeed' => variable_get('colorbox_slideshowspeed', 2500), 'slideshowSpeed' => variable_get('colorbox_slideshowspeed', 2500),
'slideshowStart' => variable_get('colorbox_text_start', 'start slideshow'), 'slideshowStart' => variable_get('colorbox_text_start', 'start slideshow'),
'slideshowStop' => variable_get('colorbox_text_stop', 'stop slideshow'), 'slideshowStop' => variable_get('colorbox_text_stop', 'stop slideshow'),
'current' => variable_get('colorbox_text_current', '{current} of {total}'), 'current' => strip_tags(variable_get('colorbox_text_current', '{current} of {total}')),
'previous' => variable_get('colorbox_text_previous', '« Prev'), 'previous' => strip_tags(variable_get('colorbox_text_previous', '« Prev')),
'next' => variable_get('colorbox_text_next', 'Next »'), 'next' => strip_tags(variable_get('colorbox_text_next', 'Next »')),
'close' => variable_get('colorbox_text_close', 'Close'), 'close' => strip_tags(variable_get('colorbox_text_close', 'Close')),
'overlayClose' => variable_get('colorbox_overlayclose', 1) ? TRUE : FALSE, 'overlayClose' => variable_get('colorbox_overlayclose', 1) ? TRUE : FALSE,
'maxWidth' => variable_get('colorbox_maxwidth', '98%'), 'maxWidth' => variable_get('colorbox_maxwidth', '98%'),
'maxHeight' => variable_get('colorbox_maxheight', '98%'), 'maxHeight' => variable_get('colorbox_maxheight', '98%'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment