[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #41887] +[WebServer matchIP:addr to:pat] always matches single IP a
From: |
T.Somequare |
Subject: |
[bug #41887] +[WebServer matchIP:addr to:pat] always matches single IP address |
Date: |
Mon, 17 Mar 2014 15:43:54 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9 |
URL:
<http://savannah.gnu.org/bugs/?41887>
Summary: +[WebServer matchIP:addr to:pat] always matches
single IP address
Project: GNUstep
Submitted by: tsomeqdev
Submitted on: 2014年03月18日 00時43分53秒
Category: Libraries
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The method WebServer+matchIP:to: seems to be wrong.
[WebServer matchIP:@"1.2.3.4" to:@"4.5.6.7"] returns YES.
I found where a wrong variable name is:
--- WebServer-1.4.6/WebServer.m-edited
+++ WebServer-1.4.6/WebServer.m
@@ -565,7 +565,7 @@
{
/* An IPv4 address in dot format (nnn.nnn.nnn.nnn)
*/
- parts = [pattern componentsSeparatedByString: @"."];
+ parts = [address componentsSeparatedByString: @"."];
expect = [[parts objectAtIndex: 0] intValue];
expect = expect * 256 + [[parts objectAtIndex: 1] intValue];
expect = expect * 256 + [[parts objectAtIndex: 2] intValue];
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41887>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #41887] +[WebServer matchIP:addr to:pat] always matches single IP address,
T.Somequare <=