ady624 / webCoRE

webCoRE is a web version of CoRE
GNU General Public License v3.0
249 stars 976 forks source link

Update substring function parameter in webcore-piston.groovy #46

Closed tbam closed 6 years ago

tbam commented 6 years ago

Updated substring parameters used to identify RFC1918 IP addresses in the 172.16.0.0 – 172.31.255.255 address range. Without this change a Java error is thrown when using a 172.x.x.x IP address for the HTTP request because the endIndex parm for the substring function occurs before the beginIndex parm.

idpaterson commented 6 years ago

Thank you! For future reference, this is the solution for the issue originally reported on Discourse as Web request error with any 172.x.x.x IP Address.