From 2930ba91be7c020abd4c66138ee33023c5128c79 Mon Sep 17 00:00:00 2001 From: Kirk Wight Date: Thu, 11 Jul 2013 12:04:40 -0400 Subject: [PATCH] _s: Escape URLs in image.php --- image.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/image.php b/image.php index b8636bcd..adb9f56e 100644 --- a/image.php +++ b/image.php @@ -23,10 +23,10 @@ get_header(); printf( __( 'Published at %4$s × %5$s in %8$s', '_s' ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), - wp_get_attachment_url(), + esc_url( wp_get_attachment_url() ), $metadata['width'], $metadata['height'], - get_permalink( $post->post_parent ), + esc_url( get_permalink( $post->post_parent ) ), esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), get_the_title( $post->post_parent ) ); @@ -66,9 +66,9 @@ get_header();