WordPress.org

Plugin Directory

Changeset 68914 for sermon-browser/trunk


Ignore:
Timestamp:
10/14/08 13:06:47 (6 years ago)
Author:
mark8barnes
Message:
 
Location:
sermon-browser/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sermon-browser/trunk/sb-includes/frontend.php

    r68148 r68914  
    1818        return '?'; 
    1919    } else { 
    20         return '&'; 
     20        return '&'; 
    2121    } 
    2222} 
     
    485485        } 
    486486    } 
    487     return sb_display_url().sb_query_char().implode('&', $bar); 
     487    return sb_display_url().sb_query_char().implode('&', $bar); 
    488488} 
    489489 
     
    613613// Print link to attached files 
    614614function sb_print_url($url) { 
     615    // Replacement htmlspecialchars_decode for PHP < 5.1 
     616    if (!function_exists("htmlspecialchars_decode")) { 
     617        function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) { 
     618            return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style))); 
     619        } 
     620    } 
    615621    global $siteicons, $default_site_icon ,$filetypes; 
    616622    if (substr($url,0,7) == "http://") { 
    617         $url=sb_display_url().sb_query_char().'show&url='.URLencode($url); 
     623        $url=sb_display_url().htmlspecialchars_decode(sb_query_char()).'show&url='.URLencode($url); 
    618624    } else { 
    619         $url=sb_display_url().sb_query_char().'show&file_name='.URLencode($url); 
     625        $url=sb_display_url().htmlspecialchars_decode(sb_query_char()).'show&file_name='.URLencode($url); 
    620626    } 
    621627    $icon_url = sb_get_value('plugin_url').'/sb-includes/icons/'; 
  • sermon-browser/trunk/sermon.php

    r68148 r68914  
    55Description: Add sermons to your Wordpress blog. Main coding by <a href="http://codeandmore.com/">Tien Do Xuan</a>. Design and additional coding 
    66Author: Mark Barnes 
    7 Version: 0.37.2 
     7Version: 0.37.3 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    5050    global $sermon_domain; 
    5151    //Set global constants 
    52     define('SB_CURRENT_VERSION', '0.37.2'); 
     52    define('SB_CURRENT_VERSION', '0.37.3'); 
    5353    define('SB_DATABASE_VERSION', '1.5'); 
    5454    $directories = explode(DIRECTORY_SEPARATOR,dirname(__FILE__)); 
     
    354354        $dir = sb_get_default('sermon_path'); 
    355355        if (sb_display_url()=="") { 
    356             update_option('sb_podcast', sb_get_value('wordpress_url').'?podcast'); 
     356            update_option('sb_podcast', sb_get_value('wordpress_url').sb_query_char().'podcast'); 
    357357        } else { 
    358             update_option('sb_podcast', sb_display_url().'?podcast'); 
     358            update_option('sb_podcast', sb_display_url().sb_query_char ().'podcast'); 
    359359        } 
    360360        update_option('sb_sermon_upload_dir', $dir); 
     
    533533            <tr> 
    534534                <td align="right"><?php _e('Private podcast feed', $sermon_domain) ?>: </td> 
    535                 <td><?php if (sb_display_url()=="") { echo sb_get_value('wordpress_url'); } else { echo sb_display_url(); } ?>?podcast</td> 
     535                <td><?php if (sb_display_url()=="") { echo sb_get_value('wordpress_url'); } else { echo sb_display_url(); } echo sb_query_char(); ?>podcast</td> 
    536536            </tr> 
    537537            <tr> 
Note: See TracChangeset for help on using the changeset viewer.