[pLog-svn] r7255 - plugins/branches/lifetype-1.2/tagcloud
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed Jan 12 11:40:49 EST 2022
Author: jondaley
Date: 2022-01-12 11:40:49 -0500 (Wed, 12 Jan 2022)
New Revision: 7255
Modified:
plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
Log:
mysql_escape_string doesn't exist any more. we just need a number, so this is easy
Modified: plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
===================================================================
--- plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php 2020-10-15 04:20:08 UTC (rev 7254)
+++ plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php 2022-01-12 16:40:49 UTC (rev 7255)
@@ -153,7 +153,7 @@
$bannedwords = $blogSettings->getValue( "plugin_tagcloud_banned_keywords" );
$bannedwords = explode(",", strtolower($bannedwords));
- $MaxArticles = mysql_escape_string($MaxArticles);
+ $MaxArticles = preg_replace("/[^0-9]/", "", $MaxArticles);
$query = "SELECT t.normalized_text,t.normalized_topic FROM " . $prefix .
"articles a, " . $prefix."articles_text t" .
@@ -311,4 +311,4 @@
}
}
-?>
\ No newline at end of file
+?>
More information about the pLog-svn
mailing list