• The caption for the title in the plugin creates a broken title when it has double quotes in it.
    I suggest to add a htmlspecialchars() to the caption in the code:

    if(!empty($entry['caption'])) {
    	$caption = $entry['caption']['text'];
    } else {
    	$caption = '';
    }
    $caption = htmlspecialchars($caption);
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mediabeta

    (@mediabeta)

    Hi fja3omega,
    sorry for the delay .

    Please could you send us a link where we can see it. We tested and we didn’t experience it.
    Thanks!

    Thread Starter fja3omega

    (@fja3omega)

    For example in the:
    enjoy-instagram-instagram-responsive-images-gallery-and-carousel/library/enjoyinstagram_shortcode_grid_widget.php

    enjoy-instagram-instagram-responsive-images-gallery-and-carousel/library/enjoyinstagram_shortcode_grid.php

    enjoy-instagram-instagram-responsive-images-gallery-and-carousel/library/enjoyinstagram_shortcode.php

    The code is:

    if(!empty($entry['caption'])) {
    		$caption = $entry['caption']['text'];
    	}else{
    		$caption = '';
    	}
    	$square_thumbnail = $entry['images']['thumbnail']['url'];
    
    	$link = "<a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry['images']['standard_resolution']['url']}\">";

    If you have a sentence with double quote it will break the caption and you will have a broken title in the anchor tag.

    You can test this on an instagram account that has a caption with a double quote.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Caption fix’ is closed to new replies.