[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.386,1.387
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Oct 17 06:42:26 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv12454
Modified Files:
lib-common.php
Log Message:
Spontaneous idea while installing 1.3.10rc1 on geeklog.net: Allow dots in IDs (story IDs, etc.).
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.386
retrieving revision 1.387
diff -C2 -d -r1.386 -r1.387
*** lib-common.php 9 Oct 2004 12:22:04 -0000 1.386
--- lib-common.php 17 Oct 2004 10:42:24 -0000 1.387
***************
*** 5895,5899 ****
$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 ();
--- 5895,5899 ----
$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