What potential issues can arise when using JURI::current() in Joomla 1.5?

Using JURI::current() in Joomla 1.5 can potentially cause issues with incorrect URL generation, especially when dealing with SEF URLs or when the site is accessed through a reverse proxy. To solve this issue, it is recommended to use JURI::getInstance()->toString() instead, as it provides a more reliable way to get the current URL.

$currentUrl = JURI::getInstance()->toString();