util_item_href_equal
Description:
Compares two hrefs and return whether they reference the same item on the server.
The comparison is done in a relaxed way, not considering scheme part and comparing the host name case insensitively, while the path case sensitively. It also ignores the username/password information in the hostname part, if it's included. The function doesn't decode any URI-encoded characters.
Parameters:
href1 |
the first href |
href2 |
the second href |
Returns:
whether the two href-s reference the same item |