Ask / Submit
9

Bug: using only number as search keyword doesn't work

asked 2014-02-14 11:14:26 +0300

peremen gravatar image

updated 2014-07-07 15:28:18 +0300

jiit gravatar image

I accidentally entered some short numbers as search keyword in stock browser, it does not work. For example, entering "8888577" as keyword and pressing enter key does not give search result. If I add some hyphen like "8888-577", search function is working.

This looks weird since when I use longer numbers as keyword, such as "0215883366" search function is working but using smaller number search function does not work. After entering those short number keyword and re-opening the browser it tries to connect some IP address. Looks like browser bug or misfeature.

edit retag flag offensive close delete

Comments

Yes, it looks like if the browser can see the number as an IP address it will. I wonder how this is going to be fixed; IP addresses are allowed in URLs.

tingo ( 2014-02-15 01:52:15 +0300 )edit

As of 1.0.5.16 default web browser still refuses to recognize "8888577" as search keyword. The term "8888577" is a slang on Korean baseball scene, there might be other number-only keywords in the world :(

peremen ( 2014-04-11 19:21:11 +0300 )edit

As of 1.0.5.19, the browser doesn't accept 3.14 as a search keyword, or 2048, or 42. If you want to search for what number 13 means, you have to type "thirteen" or similar. Desktop browsers don't have this problem.

With a little testing, the browser seems to interpret any number sequence that contains a dot (e.g. "3.14", "1.2.3.") as an IP address (the address is shown in the "loading" bar above the toolbar in the bottom, but nothing is loaded). A simple number like 314 or 123 just Does Nothing, as if you didn't search at all.

I think an IP address should have (at least) four numbers separated by punctuation, right? All numbers that don't fit that description shouldn't be interpreted as IP's but treated as search engine keywords.

ssahla ( 2014-06-05 01:22:42 +0300 )edit

At least 3.14 is a valid IP address which expands to 3.0.0.14.

Edit: It seems, that other numbers could be converted as IP address, too. Here some examples from my Windows workstation in my office:

  • ping 3.14: 3.0.0.14
  • ping 123: 0.0.0.123
  • ping 314: 0.0.1.58
  • ping 2048: 0.0.8.0

Seems like (at least Windows) converts numbers into bin and uses this as IP address.

ejjoman ( 2014-06-05 16:08:01 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-06-05 15:19:07 +0300

veskuh gravatar image

Thanks for reporting this. Workaround would be to use quotes around the number and then browser does not try to use the number as IP address or hostname.

edit flag offensive delete publish link more

Comments

or, to be even faster, use a dot and a space like this

. 2048

mgbler ( 2014-06-06 17:24:03 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-02-14 11:14:26 +0300

Seen: 264 times

Last updated: Jun 05 '14