Plugin Directory

Changeset 2427241


Ignore:
Timestamp:
11/27/2020 12:04:43 PM (5 years ago)
Author:
surdotly
Message:

Release 3.0.3

Location:
surly/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • surly/trunk/lib/SurlyWordPress.php

    r1615490 r2427241  
    8181            $hash = $this->hashLongUrl($longUrl);
    8282
    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) . "')";
    8484        }
    8585
     
    100100        foreach ($urls as $longUrl) {
    101101            $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) . "')";
    103103        }
    104104
  • surly/trunk/readme.txt

    r1688281 r2427241  
    33Tags: 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
    44Requires at least: 3.1
    5 Tested up to: 4.8
     5Tested up to: 5.5.3
    66Stable tag: trunk
    77License: GPLv3 or later
  • surly/trunk/static/js/surly-script.js

    r1615490 r2427241  
    295295
    296296    $(window).on('message', function(event) {
     297        if (event.origin != "https://surdotly.com") {
     298            return;
     299        }
     300
    297301        var data = JSON.parse(event.data);
     302        if (!data.surly_toolbar_settings) {
     303            return;
     304        }
    298305
    299306        $.post(ajaxurl, {surly_toolbar_settings: data, action: 'surly_save_toolbar_settings'}).done(function() {
  • surly/trunk/surly.php

    r1688281 r2427241  
    2020 * Plugin URI: http://sur.ly
    2121 * 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.2
     22 * Version: 3.0.3
    2323 * Author: Sur.ly
    2424 */
Note: See TracChangeset for help on using the changeset viewer.