[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.379,1.380
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Thu Sep 30 06:00:20 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv22994
Modified Files:
lib-common.php
Log Message:
Allow underscores in IDs.
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.379
retrieving revision 1.380
diff -C2 -d -r1.379 -r1.380
*** lib-common.php 28 Sep 2004 17:50:08 -0000 1.379
--- lib-common.php 30 Sep 2004 10:00:17 -0000 1.380
***************
*** 5868,5873 ****
{
$id = str_replace (' ', '', $id);
! $id = str_replace (array ('_', '/', '\\', ':', '+'), '-', $id);
! $id = preg_replace('/[^a-zA-Z0-9\-]/', '', $id);
if (empty ($id) && $new_id) {
$id = COM_makesid ();
--- 5868,5873 ----
{
$id = str_replace (' ', '', $id);
! $id = str_replace (array ('/', '\\', ':', '+'), '-', $id);
! $id = preg_replace('/[^a-zA-Z0-9\-_]/', '', $id);
if (empty ($id) && $new_id) {
$id = COM_makesid ();
More information about the geeklog-cvs
mailing list