Plugin Directory

Changeset 355210


Ignore:
Timestamp:
03/04/2011 01:54:28 PM (15 years ago)
Author:
iDo8p
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpmu-automatic-links/trunk/wpmu-automatic-links.php

    r355209 r355210  
    228228        public function updateLink($id,$url,$text,$anchorText,$rel,$type){
    229229            global $wpdb;
     230            if(get_magic_quotes_gpc()) {
     231                $text = stripslashes($text);
     232                $anchorText = stripslashes($anchorText);
     233            }
    230234            $table_name= $wpdb->prefix.self::DOMAIN;
    231235            return $wpdb->update($table_name, array('url' => mysql_real_escape_string($url),
     
    240244            global $wpdb;
    241245
    242 
     246            if(get_magic_quotes_gpc()) {
     247                $text = stripslashes($text);
     248                $anchorText = stripslashes($anchorText);
     249            }
    243250            if ( is_multisite() ) {
    244251                switch_to_blog(self::MASTERBLOG);
     
    381388                    <?php foreach($links as $link){ ?>
    382389                        <tr id="link-<?php echo $link->id; ?>" class="<?php if(in_array($link->text,$exclude)) {echo "disabled";}?>">
    383                             <td><?php echo $link->text; ?></td>
     390                            <td><?php echo stripslashes($link->text); ?></td>
    384391                            <td><?php echo $link->url; ?></td>
    385                             <td><?php echo $link->anchortext; ?></td>
     392                            <td><?php echo stripslashes($link->anchortext); ?></td>
    386393                            <td><?php echo $this->getRel($link->rel); ?></td>
    387394                            <td><?php echo $this->getTarget($link->type); ?></td>
     
    421428                    <div>
    422429                    <label for="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Text"><?php _e('Word :',WPMUAutomaticLinks::DOMAIN); ?></label>
    423                     <input maxlength="255"  id="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Text" type="text" name="text" value="<?php esc_attr_e($text); ?>"/>
     430                    <input maxlength="255"  id="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Text" type="text" name="text" value="<?php esc_attr_e(stripslashes($text)); ?>"/>
    424431                    </div><div>
    425432                    <label for="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Url"><?php _e('Url :',WPMUAutomaticLinks::DOMAIN); ?></label>
     
    427434                    </div><div>
    428435                    <label for="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Title"><?php _e('Title :',WPMUAutomaticLinks::DOMAIN); ?></label>
    429                     <input maxlength="255"  id="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Title" type="text" name="alt" value="<?php esc_attr_e($anchortext); ?>"/>
     436                    <input maxlength="255"  id="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Title" type="text" name="alt" value="<?php esc_attr_e(stripslashes($anchortext)); ?>"/>
    430437                    </div><div>
    431438                    <label for="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Target"><?php _e('Target :',WPMUAutomaticLinks::DOMAIN); ?></label>
Note: See TracChangeset for help on using the changeset viewer.