Version: 3.5.2 Reporter: Jace Richardson —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
This is a fresh install of IP2Nation. The ip_range_low
and ip_range_high
columns are VARBINARY 16.
Updating the IP2Nation data from MaxMind appears to jumble the data. I have downloaded the data independently using the URLs the IP2Nation code reference and they appear to be correct and uncorrupted.
In /system/ee/EllisLab/Addons/ip_to_nation/models/ip_to_nation_data.php
I commented out the $this->to_binary($data[0])
(and index 1) in favor of just the raw $data[0]
(and index 1) on lines 160-161 and that seems to insert the data properly.
Here is a screenshot of regular (left) and hacked (right). You can also see there is a discrepancy in the number of rows that get saved.
https://www.dropbox.com/s/sd1mhn1tffcagrx/ip2nation.png?dl=0
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```