Plugin Directory

Changeset 923348


Ignore:
Timestamp:
05/29/2014 09:43:59 PM (12 years ago)
Author:
easyvideoplayer
Message:

Fixed mod_sec incompatibility

Location:
wp-evs/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-evs/trunk/admin/admin.php

    r707567 r923348  
    4040        // Save the posted value in the database
    4141        update_option('wp-evs-configured', true);
    42         update_option('evs_location', $_POST['evs_location']);
     42       
     43        // Reconstruct the location
     44        $evs_location = 'http://'.implode('.', $_POST['evs_location_frags']);
     45       
     46        update_option('evs_location', $evs_location);
    4347        update_option('evs_username', $_POST['evs_username']);
    4448        update_option('evs_password', $_POST['evs_password']);
     
    9599                    if(response.success == true) {
    96100                        if(typeof response.project_location == 'string') {
    97                             $('#evs_location').val(response.project_location);
     101                            var loc = response.project_location.replace('http://', '').replace('https://', ''), loc_frags = loc.split('.');
     102                            $('#evs_location').prop('name', ''); // remove this field
     103                            $.each(loc_frags, function(idx, frag) {
     104                                $('<input type="hidden" name="evs_location_frags[]" value="'+frag+'" />').appendTo($('#wp-evs-admin-form'));
     105                            });
    98106                            $('#evs_oembed_support').val(''+(response.oembed_support || false));
    99107                            $('#wp-evs-admin-form').submit();
  • wp-evs/trunk/integrate_basic.php

    r707567 r923348  
    55    <script type="text/javascript">
    66    function WPEVSPopup() {
    7      var evscode = prompt('Please enter your EasyVideoSuite code here. Audio files and lightboxes will work also!');
     7     var evscode = prompt('Please enter your EasyVideoSuite code here. Lightboxes, split tests and playlists will all work as well!');
    88     if(typeof(evscode) == 'string' && evscode.length > 0) {
    99            var url = '<?php echo plugins_url('/wp-evs/images/placeholder.png?v=1'); ?>';
  • wp-evs/trunk/readme.txt

    r919459 r923348  
    4141== Changelog ==
    4242
     43= 1.1.8 =
     44* Fixed incompatibility with some strict mod_security rules, preventing saving settings
     45
    4346= 1.1.7 =
    4447* Same improved distortion-prevention for EVP2 videos
  • wp-evs/trunk/wp-evs.php

    r919459 r923348  
    44Plugin URI: http://easyvideosuite.com/
    55Description: Plugin to easily embed EasyVideoSuite videos into WordPress posts!
    6 Date: 2014, May, 22
     6Date: 2014, May, 29
    77Author: WebActix
    88Author URI: http://webactix.com
    9 Version: 1.1.7
     9Version: 1.1.8
    1010*/
    1111
Note: See TracChangeset for help on using the changeset viewer.