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();