Plugin Directory

Changeset 2294683


Ignore:
Timestamp:
04/29/2020 09:21:05 PM (6 years ago)
Author:
batmoo
Message:

memcached 3.0.2

Better output of HTML.

Location:
memcached
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • memcached/tags/3.0.1/object-cache.php

    r1410579 r2294683  
    364364        $cmd = substr($line, 0, strpos($line, ' '));
    365365
    366         $cmd2 = "<span style='color:{$colors[$cmd]}'>$cmd</span>";
    367 
    368         return $cmd2 . substr($line, strlen($cmd)) . "\n";
     366        $cmd2 = "<span style='color:" . esc_attr( $colors[$cmd] ) . "'>" . esc_html( $cmd ) . "</span>";
     367
     368        return $cmd2 . esc_html( substr($line, strlen($cmd)) ) . "\n";
    369369    }
    370370
     
    372372        echo "<p>\n";
    373373        foreach ( $this->stats as $stat => $n ) {
    374             echo "<strong>$stat</strong> $n";
     374            echo "<strong>" . esc_html( $stat ) . "</strong> " . esc_html( $n );
    375375            echo "<br/>\n";
    376376        }
     
    380380            if ( !isset($_GET['debug_queries']) && 500 < count($ops) ) {
    381381                $ops = array_slice( $ops, 0, 500 );
    382                 echo "<big>Too many to show! <a href='" . add_query_arg( 'debug_queries', 'true' ) . "'>Show them anyway</a>.</big>\n";
     382                echo "<big>Too many to show! <a href='" . esc_url( add_query_arg( 'debug_queries', 'true' ) ) . "'>Show them anyway</a>.</big>\n";
    383383            }
    384             echo "<h4>$group commands</h4>";
     384            echo "<h4>" . esc_html( $group ) . " commands</h4>";
    385385            echo "<pre>\n";
    386386            $lines = array();
  • memcached/tags/3.0.2/object-cache.php

    r1410579 r2294683  
    44Plugin Name: Memcached
    55Description: Memcached backend for the WP Object Cache.
    6 Version: 3.0.1
     6Version: 3.0.2
    77Plugin URI: http://wordpress.org/extend/plugins/memcached/
    88Author: Ryan Boren, Denis de Bernardy, Matt Martz, Andy Skelton
     
    364364        $cmd = substr($line, 0, strpos($line, ' '));
    365365
    366         $cmd2 = "<span style='color:{$colors[$cmd]}'>$cmd</span>";
    367 
    368         return $cmd2 . substr($line, strlen($cmd)) . "\n";
     366        $cmd2 = "<span style='color:" . esc_attr( $colors[$cmd] ) . "'>" . esc_html( $cmd ) . "</span>";
     367
     368        return $cmd2 . esc_html( substr($line, strlen($cmd)) ) . "\n";
    369369    }
    370370
     
    372372        echo "<p>\n";
    373373        foreach ( $this->stats as $stat => $n ) {
    374             echo "<strong>$stat</strong> $n";
     374            echo "<strong>" . esc_html( $stat ) . "</strong> " . esc_html( $n );
    375375            echo "<br/>\n";
    376376        }
     
    380380            if ( !isset($_GET['debug_queries']) && 500 < count($ops) ) {
    381381                $ops = array_slice( $ops, 0, 500 );
    382                 echo "<big>Too many to show! <a href='" . add_query_arg( 'debug_queries', 'true' ) . "'>Show them anyway</a>.</big>\n";
     382                echo "<big>Too many to show! <a href='" . esc_url( add_query_arg( 'debug_queries', 'true' ) ) . "'>Show them anyway</a>.</big>\n";
    383383            }
    384             echo "<h4>$group commands</h4>";
     384            echo "<h4>" . esc_html( $group ) . " commands</h4>";
    385385            echo "<pre>\n";
    386386            $lines = array();
  • memcached/tags/3.0.2/readme.txt

    r1410579 r2294683  
    44Requires at least: 3.0
    55Tested up to: 4.5
    6 Stable tag: 3.0.1
     6Stable tag: 3.0.2
    77
    88Use memcached and the PECL memcache extension to provide a backing store for the WordPress object cache.
  • memcached/trunk/object-cache.php

    r1410579 r2294683  
    44Plugin Name: Memcached
    55Description: Memcached backend for the WP Object Cache.
    6 Version: 3.0.1
     6Version: 3.0.2
    77Plugin URI: http://wordpress.org/extend/plugins/memcached/
    88Author: Ryan Boren, Denis de Bernardy, Matt Martz, Andy Skelton
     
    364364        $cmd = substr($line, 0, strpos($line, ' '));
    365365
    366         $cmd2 = "<span style='color:{$colors[$cmd]}'>$cmd</span>";
    367 
    368         return $cmd2 . substr($line, strlen($cmd)) . "\n";
     366        $cmd2 = "<span style='color:" . esc_attr( $colors[$cmd] ) . "'>" . esc_html( $cmd ) . "</span>";
     367
     368        return $cmd2 . esc_html( substr($line, strlen($cmd)) ) . "\n";
    369369    }
    370370
     
    372372        echo "<p>\n";
    373373        foreach ( $this->stats as $stat => $n ) {
    374             echo "<strong>$stat</strong> $n";
     374            echo "<strong>" . esc_html( $stat ) . "</strong> " . esc_html( $n );
    375375            echo "<br/>\n";
    376376        }
     
    380380            if ( !isset($_GET['debug_queries']) && 500 < count($ops) ) {
    381381                $ops = array_slice( $ops, 0, 500 );
    382                 echo "<big>Too many to show! <a href='" . add_query_arg( 'debug_queries', 'true' ) . "'>Show them anyway</a>.</big>\n";
     382                echo "<big>Too many to show! <a href='" . esc_url( add_query_arg( 'debug_queries', 'true' ) ) . "'>Show them anyway</a>.</big>\n";
    383383            }
    384             echo "<h4>$group commands</h4>";
     384            echo "<h4>" . esc_html( $group ) . " commands</h4>";
    385385            echo "<pre>\n";
    386386            $lines = array();
  • memcached/trunk/readme.txt

    r1410579 r2294683  
    44Requires at least: 3.0
    55Tested up to: 4.5
    6 Stable tag: 3.0.1
     6Stable tag: 3.0.2
    77
    88Use memcached and the PECL memcache extension to provide a backing store for the WordPress object cache.
Note: See TracChangeset for help on using the changeset viewer.