aboutsummaryrefslogtreecommitdiff
path: root/viewpost.php
diff options
context:
space:
mode:
authorNathan Lasseter <nathan@4574.co.uk>2013-01-14 00:05:43 +0000
committerNathan Lasseter <nathan@4574.co.uk>2013-01-14 00:05:43 +0000
commita16ac37d0ff169674a4957940d14f5b5db3fb371 (patch)
treef9cb2f8a1bd06c17f21848b604967acdc69ec316 /viewpost.php
parentde17420a3bc560202bdd7d27d5ff3448adfd57d8 (diff)
Fixed quotes in twitter:description
Diffstat (limited to 'viewpost.php')
-rw-r--r--viewpost.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewpost.php b/viewpost.php
index 865b597..0d26023 100644
--- a/viewpost.php
+++ b/viewpost.php
@@ -18,7 +18,7 @@
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="<?php echo "http://{$_SERVER['SERVER_NAME']}{$blogRoot}".$_GET['post']; ?>">
<meta name="twitter:title" content="<?php echo $getpost; ?>">
- <meta name="twitter:description" content="<?php echo substr($post, 0, 196) . "..."; ?>">
+ <meta name="twitter:description" content="<?php echo preg_replace('/"/', '&quot;', substr($post, 0, 196)) . "..."; ?>">
</head>
<body>