From 29a9a297a27eef46a49d71070366e2c984f8a7bb Mon Sep 17 00:00:00 2001 From: ozhozh Date: Thu, 5 Aug 2010 08:22:27 +0000 Subject: [PATCH] Javascript fix with Topsy button git-svn-id: http://yourls.googlecode.com/svn/trunk@482 12232710-3e20-11de-b438-597f59cd7555 --- user/plugins/sample-toolbar/plugin.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/user/plugins/sample-toolbar/plugin.php b/user/plugins/sample-toolbar/plugin.php index 7084527..8807043 100644 --- a/user/plugins/sample-toolbar/plugin.php +++ b/user/plugins/sample-toolbar/plugin.php @@ -41,12 +41,14 @@ function ozh_toolbar_do( $args ) { // Update title if it hasn't been stored yet if( $pagetitle == '' ) { $pagetitle = yourls_get_remote_title( $url ); + $_pagetitle = htmlentities( yourls_get_remote_title( $url ) ); yourls_edit_link_title( $ozh_toolbar['keyword'], $pagetitle ); } $www = YOURLS_SITE; $ver = YOURLS_VERSION; $md5 = md5( $url ); + $sql = yourls_get_num_queries(); // When was the link created (in days) $diff = abs( time() - strtotime( yourls_get_keyword_timestamp( $ozh_toolbar['keyword'] ) ) ); @@ -80,6 +82,7 @@ function ozh_toolbar_do( $args ) {
Short link powered by YOURLS and created $created. $hits. +
@@ -96,7 +99,7 @@ function ozh_toolbar_do( $args ) {
-- 2.45.0