]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Fix ticket #2700: some numeric IDs were misinterpreted as hex numbers instead of...
authorBrion Vibber <brion@status.net>
Sat, 20 Nov 2010 00:12:28 +0000 (16:12 -0800)
committerBrion Vibber <brion@status.net>
Sat, 20 Nov 2010 00:12:28 +0000 (16:12 -0800)
commitb6159983099e40444ef552b78870e13f60f33545
tree0adc420d07b5e6de1dc76347d53d8c8adbb77af5
parent94f2f96f2ebe8d7b127ec643f84cbfb20f4bb475
Fix ticket #2700: some numeric IDs were misinterpreted as hex numbers instead of strings when '0x123' passed in.

Switched from is_numeric() to a custom self::is_decimal() which is more strict.
This makes our behavior match Twitter's API a bit better, so eg this:

  http://identi.ca/api/statuses/home_timeline/0x6d686b.xml

should now be equivalent to:

  http://identi.ca/api/statuses/home_timeline.xml?screen_name=0x6d686b

instead of:

  http://identi.ca/api/statuses/home_timeline.xml?user_id=7170155
lib/apiaction.php