Changes in redirection [421721:447262]
- Location:
- redirection/trunk
- Files:
-
- 6 edited
-
matches/user_agent.php (modified) (2 diffs)
-
models/log.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
redirection.php (modified) (1 diff)
-
view/admin/log_item.php (modified) (1 diff)
-
view/admin/log_item_details.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
redirection/trunk/matches/user_agent.php
r421721 r447262 27 27 return __( 'URL and user agent', 'redirection' ); 28 28 } 29 29 30 30 function show() { 31 31 $defined = array( … … 36 36 'Safari' => __( 'Safari', 'redirection' ), 37 37 'iPhone' => __( 'iPhone', 'redirection' ), 38 'iPad' => __( 'iPad', 'redirection' ), 39 'Android' => __( 'Android', 'redirection' ), 38 40 'Wii' => __( 'Nintendo Wii', 'redirection' ), 39 41 ); -
redirection/trunk/models/log.php
r421721 r447262 129 129 function show_url ($url) 130 130 { 131 return implode ('​/', explode ('/', substr ( htmlspecialchars($url), 0, 80))).(strlen ($url) > 80 ? '...' : '');131 return implode ('​/', explode ('/', substr (esc_html ($url), 0, 80))).(strlen ($url) > 80 ? '...' : ''); 132 132 } 133 133 -
redirection/trunk/readme.txt
r421721 r447262 88 88 == Changelog == 89 89 90 = 2.2.10 = 91 * Fix XSS in referrers log 92 90 93 = 2.2.9 = 91 94 * Fix XSS in admin menu -
redirection/trunk/redirection.php
r421721 r447262 4 4 Plugin URI: http://urbangiraffe.com/plugins/redirection/ 5 5 Description: Manage all your 301 redirects and monitor 404 errors 6 Version: 2.2. 96 Version: 2.2.10 7 7 Author: John Godley 8 8 Author URI: http://urbangiraffe.com -
redirection/trunk/view/admin/log_item.php
r421721 r447262 9 9 </td> 10 10 <td class="info"> 11 <a class="details" href="<?php echo $log->url ?>"><?php echo $log->show_url ($log->url) ?></a>11 <a class="details" href="<?php echo esc_attr( $log->url ) ?>"><?php echo $log->show_url( $log->url ) ?></a> 12 12 </td> 13 13 <td> 14 14 <?php if (strlen ($log->referrer) > 0) : ?> 15 <a href="<?php echo $this->url ($log->referrer) ?>"><?php echo $log->show_url ($log->referrer ()) ?></a>15 <a href="<?php echo esc_attr( $this->url ( $log->referrer) ) ?>"><?php echo $log->show_url( $log->referrer() ) ?></a> 16 16 <?php endif; ?> 17 17 </td> 18 18 <td style="width:9em" class="center"> 19 <a target="_blank" href="<?php echo $lookup. $log->ip ?>"><?php echo htmlspecialchars ($log->ip) ?></a>19 <a target="_blank" href="<?php echo $lookup.esc_attr( $log->ip ) ?>"><?php echo esc_html( $log->ip ) ?></a> 20 20 </td> 21 21 <td style="width: 16px" class="lastcol"> -
redirection/trunk/view/admin/log_item_details.php
r421721 r447262 3 3 <tr> 4 4 <th><a href="<?php echo $log->url ?>"><?php _e ('Source URL', 'redirection'); ?>:</a></th> 5 <td><input style="width: 95%" type="text" name="something" readonly="readonly" value="<?php echo htmlspecialchars(urldecode ($log->url)) ?>"/></td>5 <td><input style="width: 95%" type="text" name="something" readonly="readonly" value="<?php echo esc_attr (urldecode ($log->url)) ?>"/></td> 6 6 </tr> 7 7 <?php if ($log->sent_to) : ?> 8 8 <tr> 9 9 <th><a href="<?php echo $log->sent_to ?>"><?php _e ('Redirect to', 'redirection'); ?>:</a></th> 10 <td><input style="width: 95%" type="text" name="something" readonly="readonly" value="<?php echo htmlspecialchars($log->sent_to) ?>"/></td>10 <td><input style="width: 95%" type="text" name="something" readonly="readonly" value="<?php echo esc_attr ($log->sent_to) ?>"/></td> 11 11 </tr> 12 12 <?php endif; ?> … … 14 14 <tr> 15 15 <th><?php _e ('Redirected by', 'redirection'); ?>:</th> 16 <td><?php echo $redirect->method->name () ?> <?php _e ('for', 'redirection'); ?>: <code><?php echo htmlspecialchars($redirect->url) ?></code></td>16 <td><?php echo $redirect->method->name () ?> <?php _e ('for', 'redirection'); ?>: <code><?php echo esc_html ($redirect->url) ?></code></td> 17 17 </tr> 18 18 <?php endif; ?> 19 19 <tr> 20 20 <th><?php _e ('User Agent', 'redirection'); ?>:</th> 21 <td><input style="width: 95%" type="text" readonly="readonly" name="other" value="<?php echo htmlspecialchars($log->agent) ?>"/></td>21 <td><input style="width: 95%" type="text" readonly="readonly" name="other" value="<?php echo esc_html ($log->agent) ?>"/></td> 22 22 </tr> 23 23 <tr>
Note: See TracChangeset
for help on using the changeset viewer.