Last modified: 2013-10-23 18:17:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37738, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35738 - IP Zone issue
IP Zone issue
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.18.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
: ipv6, patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-05 20:05 UTC by Nick Kuznia
Modified: 2013-10-23 18:17 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nick Kuznia 2012-04-05 20:05:32 UTC
I encountered a similar error in v1.18.2 While support for IPv6 was added, support for the IP zone was not, for my application, I simply trimmed the zone information off as follows: line 659+ in /includes/IP.php:

public static function canonicalize( $addr ) {

   $addr = preg_replace('/\%.*/i',,$addr); #line I added to remove zone info

if ( self::isValid( $addr ) ) { return $addr; }
Comment 1 Nick Kuznia 2012-04-05 20:08:23 UTC
$addr = preg_replace('/\%.*/i','',$addr); #line I added to remove zone info

prev dropped some quotes on copy
Comment 2 Sumana Harihareswara 2012-07-20 18:30:32 UTC
Nick, would you be interested in suggesting your change via our source control system?

https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker
Comment 3 Daniel Kinzler 2012-09-05 17:12:16 UTC
Submitted to gerrit as Icccf1097
Comment 4 matanya 2012-09-05 17:30:47 UTC
thanks daniel.
Comment 5 Sumana Harihareswara 2012-10-12 02:11:26 UTC
Patch merged. Thanks!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links