Changeset 355210
- Timestamp:
- 03/04/2011 01:54:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wpmu-automatic-links/trunk/wpmu-automatic-links.php
r355209 r355210 228 228 public function updateLink($id,$url,$text,$anchorText,$rel,$type){ 229 229 global $wpdb; 230 if(get_magic_quotes_gpc()) { 231 $text = stripslashes($text); 232 $anchorText = stripslashes($anchorText); 233 } 230 234 $table_name= $wpdb->prefix.self::DOMAIN; 231 235 return $wpdb->update($table_name, array('url' => mysql_real_escape_string($url), … … 240 244 global $wpdb; 241 245 242 246 if(get_magic_quotes_gpc()) { 247 $text = stripslashes($text); 248 $anchorText = stripslashes($anchorText); 249 } 243 250 if ( is_multisite() ) { 244 251 switch_to_blog(self::MASTERBLOG); … … 381 388 <?php foreach($links as $link){ ?> 382 389 <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> 384 391 <td><?php echo $link->url; ?></td> 385 <td><?php echo $link->anchortext; ?></td>392 <td><?php echo stripslashes($link->anchortext); ?></td> 386 393 <td><?php echo $this->getRel($link->rel); ?></td> 387 394 <td><?php echo $this->getTarget($link->type); ?></td> … … 421 428 <div> 422 429 <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)); ?>"/> 424 431 </div><div> 425 432 <label for="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Url"><?php _e('Url :',WPMUAutomaticLinks::DOMAIN); ?></label> … … 427 434 </div><div> 428 435 <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)); ?>"/> 430 437 </div><div> 431 438 <label for="<?php echo WPMUAutomaticLinks::DOMAIN; ?>Target"><?php _e('Target :',WPMUAutomaticLinks::DOMAIN); ?></label>
Note: See TracChangeset
for help on using the changeset viewer.