Changeset 2427241
- Timestamp:
- 11/27/2020 12:04:43 PM (5 years ago)
- Location:
- surly/trunk
- Files:
-
- 4 edited
-
lib/SurlyWordPress.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
static/js/surly-script.js (modified) (1 diff)
-
surly.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
surly/trunk/lib/SurlyWordPress.php
r1615490 r2427241 81 81 $hash = $this->hashLongUrl($longUrl); 82 82 83 $insert[] = "('" . mysql_real_escape_string($longUrl) . "','" . mysql_real_escape_string($hash) . "','" . mysql_real_escape_string($shortId) . "')";83 $insert[] = "('" . $wpdb->_real_escape($longUrl) . "','" . $wpdb->_real_escape($hash) . "','" . $wpdb->_real_escape($shortId) . "')"; 84 84 } 85 85 … … 100 100 foreach ($urls as $longUrl) { 101 101 $hash = $this->hashLongUrl($longUrl); 102 $where[] = "(`hash` = '" . mysql_real_escape_string($hash) . "' AND `long_url` = '" . mysql_real_escape_string($longUrl) . "')";102 $where[] = "(`hash` = '" . $wpdb->_real_escape($hash) . "' AND `long_url` = '" . $wpdb->_real_escape($longUrl) . "')"; 103 103 } 104 104 -
surly/trunk/readme.txt
r1688281 r2427241 3 3 Tags: surly, security, comments, posts, links, remove spam, sanitize links, remove toxic links, toxic links, adult links, spam links, BuddyPress links, stop comment spam, clean comment links, control, content links, external links, link masking, linking, outbound, outbound links, outgoing links, safe links, seo, links building, seo links, shorten, shortener, text linking, text links, url, urls 4 4 Requires at least: 3.1 5 Tested up to: 4.85 Tested up to: 5.5.3 6 6 Stable tag: trunk 7 7 License: GPLv3 or later -
surly/trunk/static/js/surly-script.js
r1615490 r2427241 295 295 296 296 $(window).on('message', function(event) { 297 if (event.origin != "https://surdotly.com") { 298 return; 299 } 300 297 301 var data = JSON.parse(event.data); 302 if (!data.surly_toolbar_settings) { 303 return; 304 } 298 305 299 306 $.post(ajaxurl, {surly_toolbar_settings: data, action: 'surly_save_toolbar_settings'}).done(function() { -
surly/trunk/surly.php
r1688281 r2427241 20 20 * Plugin URI: http://sur.ly 21 21 * Description: Sur.ly enables you to control and analyze any outbound links published by your site visitors in user-generated content as well as to protect and retain users that follow such links. 22 * Version: 3.0. 222 * Version: 3.0.3 23 23 * Author: Sur.ly 24 24 */
Note: See TracChangeset
for help on using the changeset viewer.