After installing the package SMF Links Directory Lite version 1.0, which was last modified on July 4, 2011, by Nibogo on two Simple Machines Forum (SMF) forums for a family member, she reported that links entered using the mod were not working. When I checked what was happening, I found that when she entered URLs that contained upper-case letters, all of the upper-case letters would be converted to lower-case, whichh wouldn't pose a problem if the URLs pointed to a website on a Windows server, but would pose a problem if the webserver is a Unix, Linkx, or Apple OS X system, since the case of letters is important on those systems, i.e., A.html is not the same as a.html on those systems.
I
informed the developer, but since he didn't indicate he would correct
the problem in the package posted on the SMF website, I commented out the
line in Sources/LinksAdd.php
, which was performing the
conversion to lower-case. The code is in the following section.
// Check all the data
$context['name'] = htmlspecialchars($_REQUEST['name'], ENT_QUOTES);
$context['url'] = htmlspecialchars($_REQUEST['url'], ENT_QUOTES);
$context['url'] = strtolower($context['url']);
The strtolower($context['url'])
is the line that performs
the conversion. I commented it out by putting //
at the
beginning of the line.