Closed (fixed)
Project:
IP Ranges
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 Oct 2011 at 12:25 UTC
Updated:
14 Feb 2012 at 21:24 UTC
Jump to comment: Most recent file
IP-form needs validation, that it is actually and IP-address that get's entered.
This needs, however, first this task to be completed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1304842-2.patch | 3.42 KB | roderik |
| #1 | 1304842-1.patch | 2.9 KB | roderik |
Comments
Comment #1
roderikCredit csg. (I'm just separating a few patches.)
Comment #2
roderikObviously this doesn't do much if I forget to include $form['#validate']...
Comment #3
bfr commentedThanks, i will check and commit these this evening. By the way, it is recommended that you create patches with git format-patch, then the credit goes in automatically. Just for the future, these are ofcourse fine also.
Comment #4
bfr commentedCommited, thanks for the contribution!
Comment #5
bfr commentedBy the way, i just noticed i mis-thinking in this patch. You actually SHOULD be allowed to enter your own ip-address.
Think a situation where you want to ban ALL except your own address. With this patch you are not able to a) Whitelist you own address b) blacklist range that includes your own address.
Maybe it should trigger a warning in the confirmation page instead of failing validation?
However, this needs a new issue since this patch is already in.
Comment #7
bfr commentedI changed the validation a bit in the latest release.