Plugin Directory

Changeset 690782


Ignore:
Timestamp:
04/02/2013 08:01:31 PM (13 years ago)
Author:
Bit51
Message:

Version 3.4.9

Location:
better-wp-security
Files:
67 added
5 edited

Legend:

Unmodified
Added
Removed
  • better-wp-security/trunk/better-wp-security.php

    r633727 r690782  
    44    Plugin URI: http://bit51.com/software/better-wp-security/
    55    Description: Helps protect your Wordpress installation from attackers. Hardens standard Wordpress security by hiding vital areas of your site, protecting access to important files via htaccess, preventing brute-force login attempts, detecting attack attempts, and more.
    6     Version: Dev
     6    Version: 3.4.9
    77    Text Domain: better-wp-security
    88    Domain Path: /languages
    9     Author: Bit51.com
     9    Author: Bit51
    1010    Author URI: http://bit51.com
    1111    License: GPLv2
  • better-wp-security/trunk/inc/admin/common.php

    r640296 r690782  
    921921           
    922922            //queary the user table to see if the user is there
    923             $user = $wpdb->get_var( "SELECT user_login FROM `" . $wpdb->users . "` WHERE user_login='" . sanitize_text_field( $username ) . "';" );
    924             $userid = $wpdb->get_var( "SELECT ID FROM `" . $wpdb->users . "` WHERE ID='" . sanitize_text_field( $username ) . "';" );
     923            $user = $wpdb->get_var( $wpdb->prepare( "SELECT user_login FROM `" . $wpdb->users . "` WHERE user_login = '%s';", sanitize_text_field( $username ) ) );
     924            $userid = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM `" . $wpdb->users . "` WHERE ID='%s';", sanitize_text_field( $username ) ) );
    925925           
    926926            if ( $user == $username || $userid == $username ) {
  • better-wp-security/trunk/inc/admin/content.php

    r640894 r690782  
    12131213            ?>
    12141214            <p><?php _e( 'As many of us update our sites on a general schedule it is not always necessary to permit site access all of the time. The options below will disable the backend of the site for the specified period. This could also be useful to disable site access based on a schedule for classroom or other reasons.', $this->hook ); ?></p>
    1215             <p><?php _e( 'Please note that according to your', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress timezone settings', $this->hook ); ?></a> <?php _e( 'your local time is', $this->hook ); ?> <strong><em><?php echo date( 'l, F jS, Y \a\\t g:i a', current_time( 'timestamp' ) ); ?></em></strong>. <?php _e( 'If this is incorrect please correct it on the', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress general settings page', $this->hook ); ?></a> <?php _e( 'by setting the appropriate time zone. Failure to do so may result in unintended lockouts.', $this->hook ); ?></p>
     1215            <?php
     1216                if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) {
     1217                    $currdate = date_i18n( 'l, d F Y' . ' ' . get_option( 'time_format' ) , current_time( 'timestamp' ) );
     1218                } else {
     1219                    $currdate = date( 'l, F jS, Y \a\\t g:i a', current_time( 'timestamp' ) );
     1220                }
     1221            ?>
     1222            <p><?php _e( 'Please note that according to your', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress timezone settings', $this->hook ); ?></a> <?php _e( 'your local time is', $this->hook ); ?> <strong><em><?php echo $currdate ?></em></strong>. <?php _e( 'If this is incorrect please correct it on the', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress general settings page', $this->hook ); ?></a> <?php _e( 'by setting the appropriate time zone. Failure to do so may result in unintended lockouts.', $this->hook ); ?></p>
     1223
    12161224            <?php
    12171225        }
     
    12421250                $eDate = $bwpsoptions['am_enddate'];
    12431251                $shdisplay = date( 'g', $sTime );
     1252                $shdisplay24 = date( 'G', $sTime ); // 24Hours
    12441253                $sidisplay = date( 'i', $sTime );
    12451254                $ssdisplay = date( 'a', $sTime );
    12461255                $ehdisplay = date( 'g', $eTime );
     1256                $ehdisplay24 = date( 'G', $eTime ); // 24Hours
    12471257                $eidisplay = date( 'i', $eTime );
    12481258                $esdisplay = date( 'a', $eTime );
     
    12971307                        </th>
    12981308                        <td class="settingfield">
     1309                            <?php if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?>
     1310                                <select name="am_startday">
     1311                                    <?php
     1312                                        for ( $i = 1; $i <= 31; $i++ ) { //determine default
     1313                                            if ( $sddisplay == $i ) {
     1314                                                $selected = ' selected';
     1315                                            } else {
     1316                                                $selected = '';
     1317                                            }
     1318                                            echo '<option value="' . $i . '"' . $selected . '>' . date( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
     1319                                        }
     1320                                    ?>
     1321                                </select>                           
     1322                            <?php } ?>
    12991323                            <select name="am_startmonth" id="am_startdate">
    13001324                                <?php
     
    13051329                                            $selected = '';
    13061330                                        }
    1307                                         echo '<option value="' . $i . '"' . $selected . '>' . date( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
     1331                                        echo '<option value="' . $i . '"' . $selected . '>' . date_i18n( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
    13081332                                    }
    13091333                                ?>
    13101334                            </select>
    1311                             <select name="am_startday">
    1312                                 <?php
    1313                                     for ( $i = 1; $i <= 31; $i++ ) { //determine default
    1314                                         if ( $sddisplay == $i ) {
    1315                                             $selected = ' selected';
    1316                                         } else {
    1317                                             $selected = '';
     1335                            <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?>
     1336                                <select name="am_startday">
     1337                                    <?php
     1338                                        for ( $i = 1; $i <= 31; $i++ ) { //determine default
     1339                                            if ( $sddisplay == $i ) {
     1340                                                $selected = ' selected';
     1341                                            } else {
     1342                                                $selected = '';
     1343                                            }
     1344                                            echo '<option value="' . $i . '"' . $selected . '>' . date_i18n( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
    13181345                                        }
    1319                                         echo '<option value="' . $i . '"' . $selected . '>' . date( 'jS', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
    1320                                     }
    1321                                 ?>
    1322                             </select>,
     1346                                    ?>
     1347                                </select>,
     1348                            <?php
     1349
     1350                            } else {
     1351                                echo ' ';
     1352                            }
     1353
     1354                            ?>
    13231355                            <select name="am_startyear">
    13241356                                <?php
     
    13421374                        </th>
    13431375                        <td class="settingfield">
     1376                            <?php if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?>                 
     1377                                <select name="am_endday">
     1378                                    <?php
     1379                                        for ( $i = 1; $i <= 31; $i++ ) { //determine default
     1380                                            if ( $eddisplay == $i ) {
     1381                                                $selected = ' selected';
     1382                                            } else {
     1383                                                $selected = '';
     1384                                            }
     1385                                            echo '<option value="' . $i . '"' . $selected . '>' . date( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
     1386                                        }
     1387                                    ?>
     1388                                </select>
     1389                            <?php } ?>
    13441390                            <select name="am_endmonth" id="am_enddate">
    13451391                                <?php
     
    13501396                                            $selected = '';
    13511397                                        }
    1352                                         echo '<option value="' . $i . '"' . $selected . '>' . date( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
     1398                                        echo '<option value="' . $i . '"' . $selected . '>' . date_i18n( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
    13531399                                    }
    13541400                                ?>
    13551401                            </select>
    1356                             <select name="am_endday">
    1357                                 <?php
    1358                                     for ( $i = 1; $i <= 31; $i++ ) { //determine default
    1359                                         if ( $eddisplay == $i ) {
    1360                                             $selected = ' selected';
    1361                                         } else {
    1362                                             $selected = '';
     1402                            <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?>
     1403                                <select name="am_endday">
     1404                                    <?php
     1405                                        for ( $i = 1; $i <= 31; $i++ ) { //determine default
     1406                                            if ( $eddisplay == $i ) {
     1407                                                $selected = ' selected';
     1408                                            } else {
     1409                                                $selected = '';
     1410                                            }
     1411                                            echo '<option value="' . $i . '"' . $selected . '>' . date( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
    13631412                                        }
    1364                                         echo '<option value="' . $i . '"' . $selected . '>' . date( 'jS', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';
    1365                                     }
    1366                                 ?>
    1367                             </select>,
     1413                                    ?>
     1414                                </select>,
     1415                            <?php } ?>
    13681416                            <select name="am_endyear">
    13691417                                <?php
     
    13891437                            <select name="am_starthour" id="am_starttime">
    13901438                                <?php
    1391                                     for ( $i = 1; $i <= 12; $i++ ) { //determine default
    1392                                         if ( $shdisplay == $i ) {
    1393                                             $selected = ' selected';
    1394                                         } else {
    1395                                             $selected = '';
     1439                                    if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) {
     1440                                        for ( $i = 0; $i <= 23; $i++ ) { //determine default
     1441                                            if ( $shdisplay24 == $i ) {
     1442                                                $selected = ' selected';
     1443                                            } else {
     1444                                                $selected = '';
     1445                                            }
     1446                                            if ( $i < 10 ) {
     1447                                                $val = "0" . $i;
     1448                                            } else {
     1449                                                $val = $i;
     1450                                            }
     1451                                            echo '<option value="' . $val  . '"' . $selected . '>' . $val . '</option>';   
    13961452                                        }
    1397                                         echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>';
     1453                                    } else {
     1454                                        for ( $i = 1; $i <= 12; $i++ ) { //determine default
     1455                                            if ( $shdisplay == $i ) {
     1456                                                $selected = ' selected';
     1457                                            } else {
     1458                                                $selected = '';
     1459                                            }
     1460                                            echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>';
     1461                                        }
    13981462                                    }
    13991463                                ?>
     
    14161480                                ?>
    14171481                            </select>
    1418                             <select name="am_starthalf">                                           
    1419                                 <option value="am"<?php if ( $ssdisplay == 'am' ) echo ' selected'; ?>>am</option>
    1420                                 <option value="pm"<?php if ( $ssdisplay == 'pm' ) echo ' selected'; ?>>pm</option>
    1421                             </select>
    1422                             <p><?php _e( 'Select the time at which access to the backend of this site will be disabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?>
    1423                             </p>
     1482                           
     1483                            <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?>
     1484                                <select name="am_starthalf">                                           
     1485                                    <option value="am"<?php if ( $ssdisplay == 'am' ) echo ' selected'; ?>>am</option>
     1486                                    <option value="pm"<?php if ( $ssdisplay == 'pm' ) echo ' selected'; ?>>pm</option>
     1487                                </select>
     1488                            <?php } ?>
     1489
     1490                            <p><?php _e( 'Select the time at which access to the backend of this site will be disabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?></p>
     1491
    14241492                        </td>
    14251493                    </tr>
     
    14301498                        <td class="settingfield">
    14311499                            <select name="am_endhour" id="am_endtime">
    1432                                 <?php
    1433                                     for ( $i = 1; $i <= 12; $i++ ) {//determine default
    1434                                         if ( $ehdisplay == $i ) {
    1435                                             $selected = ' selected';
    1436                                         } else {
    1437                                             $selected = '';
     1500                                <?php
     1501                                    if ( preg_match("/^(G|H)(:| \\h)/", get_option('time_format') ) ) {
     1502                                        for ( $i = 0; $i <= 24; $i++ ) {//determine default
     1503                                            if ( $ehdisplay24 == $i ) {
     1504                                                $selected = ' selected';
     1505                                            } else {
     1506                                                $selected = '';
     1507                                            }
     1508                                            echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>';
    14381509                                        }
    1439                                         echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>';
     1510                                    } else {
     1511                                        for ( $i = 1; $i <= 12; $i++ ) {//determine default
     1512                                            if ( $ehdisplay == $i ) {
     1513                                                $selected = ' selected';
     1514                                            } else {
     1515                                                $selected = '';
     1516                                            }
     1517                                            echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>';
     1518                                        }                               
    14401519                                    }
    14411520                                ?>
     
    14581537                                ?>
    14591538                            </select>
    1460                             <select name="am_endhalf">                                         
    1461                                 <option value="am"<?php if ( $esdisplay == 'am' ) echo ' selected'; ?>>am</option>
    1462                                 <option value="pm"<?php if ( $esdisplay == 'pm' ) echo ' selected'; ?>>pm</option>
    1463                             </select>
    1464                             <p><?php _e( 'Select the time at which access to the backend of this site will be re-enabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?>
    1465                             </p>
     1539                           
     1540                            <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?>
     1541                                <select name="am_endhalf">                                         
     1542                                    <option value="am"<?php if ( $esdisplay == 'am' ) echo ' selected'; ?>>am</option>
     1543                                    <option value="pm"<?php if ( $esdisplay == 'pm' ) echo ' selected'; ?>>pm</option>
     1544                                </select>
     1545                            <?php }?>
     1546                            <p><?php _e( 'Select the time at which access to the backend of this site will be re-enabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?></p>
     1547
    14661548                        </td>
    14671549                    </tr>
     
    14841566           
    14851567                $freq = ' <strong><em>' . __( 'every day' ) . '</em></strong>';
    1486                 $stime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>';
    1487                 $etime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>';
    1488                
     1568                //$stime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>';
     1569                //$etime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>';
     1570                $stime = '<strong><em>' . date_i18n( get_option('time_format', 'g:i a'), $bwpsoptions['am_starttime'] ) . '</em></strong>';
     1571                $etime = '<strong><em>' . date_i18n( get_option('time_format', 'g:i a'), $bwpsoptions['am_endtime'] ) . '</em></strong>';               
     1572
    14891573            } else {
    14901574           
    14911575                $freq = '';
    1492                 $stime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>';
    1493                 $etime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_enddate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>';
    1494                
     1576                //$stime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>';
     1577                //$etime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_enddate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>';
     1578       
     1579                if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) {
     1580                    // 12Hours Format
     1581                    $stime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>';
     1582                    $etime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_enddate'] )   . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>';
     1583
     1584                } else {
     1585                    // 24Hours Format
     1586                    $stime = '<strong><em>' . date_i18n( 'l, d F Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date_i18n( get_option( 'time_format', 'g:i a' ) , $bwpsoptions['am_starttime'] ) . '</em></strong>';
     1587                    $etime = '<strong><em>' . date_i18n( 'l, d F Y', $bwpsoptions['am_enddate'] )   . __( ' at ', $this->hook ) . date_i18n( get_option( 'time_format', 'g:i a' ) , $bwpsoptions['am_endtime'] ). '</em></strong>';             
     1588                }
    14951589            }
    14961590           
     
    17591853            if ( $bwpsoptions['backup_enabled'] == 1 ) { //get backup times
    17601854                if ( $bwpsoptions['backup_last'] == '' ) {
    1761                     $lastbackup = 'Never';
     1855                    $lastbackup = __('Never');
    17621856                } else {
    1763                     $lastbackup = date( 'l F jS, Y \a\t g:i a', $bwpsoptions['backup_last'] );
     1857                    if ( preg_match("/^(G|H)(:| \\h)/", get_option('time_format') ) )   {
     1858                        $lastbackup = date_i18n( 'l, d F Y ' . get_option( 'time_format' ), $bwpsoptions['backup_last'] );  // 24Hours Format
     1859                    } else {
     1860                        $lastbackup = date( 'l, F jS, Y \a\t g:i a', $bwpsoptions['backup_last'] );     // 12Hours Format
     1861                    }
    17641862                }
    17651863                ?>
    17661864                <p><strong><?php _e( 'Last Scheduled Backup:', $this->hook ); ?></strong> <?php echo $lastbackup; ?></p>
    1767                 <p><strong><?php _e( 'Next Scheduled Backup:', $this->hook ); ?></strong> <?php echo date( 'l F jS, Y \a\t g:i a', $bwpsoptions['backup_next'] ); ?></p>
     1865                <p><strong><?php _e( 'Next Scheduled Backup:', $this->hook ); ?></strong>
     1866                    <?php
     1867                        if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) {
     1868                            echo date_i18n( 'l, d F Y ' . get_option( 'time_format' ), $bwpsoptions['backup_next'] );
     1869                        } else {
     1870                            echo date( 'l, F jS, Y \a\t g:i a', $bwpsoptions['backup_next'] );
     1871                        }
     1872                    ?>
     1873                </p>
    17681874                <?php if ( file_exists( BWPS_PP . '/backups/lock' ) ) { ?>
    17691875                    <p style="color: #ff0000;"><?php _e( 'It looks like a scheduled backup is in progress please reload this page for more accurate times.', $this->hook ); ?></p>
     
    26382744                            <th scope="row" class="settinglabel">
    26392745                                <label for "st_passrole"><?php _e( 'Strong Password Role', $this->hook ); ?></label>
    2640                             </th>
     2746                            </th>               
    26412747                            <td class="settingfield">
    26422748                                <select name="st_passrole" id="st_passrole">
    2643                                     <option value="administrator" <?php if ( $bwpsoptions['st_passrole'] == "administrator" ) echo "selected"; ?>>Administrator</option>
    2644                                     <option value="editor" <?php if ( $bwpsoptions['st_passrole'] == "editor" ) echo "selected"; ?>>Editor</option>
    2645                                     <option value="author" <?php if ( $bwpsoptions['st_passrole'] == "author" ) echo "selected"; ?>>Author</option>
    2646                                     <option value="contributor" <?php if ( $bwpsoptions['st_passrole'] == "contributor" ) echo "selected"; ?>>Contributor</option>
    2647                                     <option value="subscriber" <?php if ( $bwpsoptions['st_passrole'] == "subscriber" ) echo "selected"; ?>>Subscriber</option>
     2749                                    <option value="administrator" <?php if ( $bwpsoptions['st_passrole'] == "administrator" ) echo "selected"; ?>><? echo translate_user_role("Administrator"); ?></option>
     2750                                    <option value="editor" <?php if ( $bwpsoptions['st_passrole'] == "editor" ) echo "selected"; ?>><? echo translate_user_role("Editor"); ?></option>
     2751                                    <option value="author" <?php if ( $bwpsoptions['st_passrole'] == "author" ) echo "selected"; ?>><? echo translate_user_role("Author"); ?></option>
     2752                                    <option value="contributor" <?php if ( $bwpsoptions['st_passrole'] == "contributor" ) echo "selected"; ?>><? echo translate_user_role("Contributor"); ?></option>
     2753                                    <option value="subscriber" <?php if ( $bwpsoptions['st_passrole'] == "subscriber" ) echo "selected"; ?>><? echo translate_user_role("Subscriber"); ?></option>
    26482754                                </select>
    26492755                                <p><?php _e( 'Minimum role at which a user must choose a strong password. For more information on WordPress roles and capabilities please see', $this->hook ); ?> <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">http://codex.wordpress.org/Roles_and_Capabilities</a>.</p>
     
    27432849
    27442850}
     2851
  • better-wp-security/trunk/inc/secure.php

    r662839 r690782  
    6969                if ( $bwpsoptions['st_longurl'] == 1 && ! is_admin() ) {
    7070               
    71                     if ( strlen( $_SERVER['REQUEST_URI'] ) > 255 ||
    72                    
    73                         strpos( $_SERVER['REQUEST_URI'], "eval(" ) ||
    74                         strpos( $_SERVER['REQUEST_URI'], "CONCAT" ) ||
    75                         strpos( $_SERVER['REQUEST_URI'], "UNION+SELECT" ) ||
    76                         strpos( $_SERVER['REQUEST_URI'], "base64" ) ) {
     71                    if (
     72                        ! strpos( $_SERVER['REQUEST_URI'], 'infinity=scrolling&action=infinite_scroll' ) &&
     73                        (
     74                            strlen( $_SERVER['REQUEST_URI'] ) > 255 ||
     75                            strpos( $_SERVER['REQUEST_URI'], 'eval(' ) ||
     76                            strpos( $_SERVER['REQUEST_URI'], 'CONCAT' ) ||
     77                            strpos( $_SERVER['REQUEST_URI'], 'UNION+SELECT' ) ||
     78                            strpos( $_SERVER['REQUEST_URI'], 'base64' )
     79                        )
     80
     81                    ) {
    7782                        @header( 'HTTP/1.1 414 Request-URI Too Long' );
    7883                        @header( 'Status: 414 Request-URI Too Long' );
  • better-wp-security/trunk/readme.txt

    r662841 r690782  
    66Requires at least: 3.4
    77Tested up to: 3.5.1
    8 Stable tag: 3.4.8
     8Stable tag: 3.4.9
    99
    1010The easiest, most effective way to secure WordPress. Improve the security of any WordPress site in seconds.
     
    7878
    7979= Translations =
     80* French by <a href="http://www.sceric.net/">SCUDELLER Eric</a>
    8081* Hindi by <a href="http://outshinesolutions.com/">Outshine Solutions</a>
    8182* Lithuanian by <a href="http://www.host1free.com/">Vincent G</a>
     
    151152
    152153== Changelog ==
     154
     155= 3.4.9 =
     156* More secure user query thanks to John Cave
     157* Greatly improved intl date handling by <a href="http://www.sceric.net/">SCUDELLER Eric</a>
     158* Added: French translation by <a href="http://www.sceric.net/">SCUDELLER Eric</a>
     159* Fixed: bug preventing Jetpack's Infinite Scroll from working with long URL protection
    153160
    154161= 3.4.8 =
Note: See TracChangeset for help on using the changeset viewer.