[Plugin: jQuery Colorbox] Wrong regexp in addColorboxGroupIdToImages() parser function
-
There is a regexp
/class/i
to check if img element already have a class attribute (jquery-colorbox.php:236). But this regexp will work wrong if, for example, image path contains string ‘class’ in it’s path. So it’s better to change this regexp with something like/(?<=\s)class(?=\=)/i
.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: jQuery Colorbox] Wrong regexp in addColorboxGroupIdToImages() parser function’ is closed to new replies.