Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12985
Modified Files:
serendipity_functions.inc.php
Log Message:
Don't leave trailing conversion chars
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.343
retrieving revision 1.344
diff -u -d -r1.343 -r1.344
--- serendipity_functions.inc.php 17 Jul 2004 23:10:12 -0000 1.343
+++ serendipity_functions.inc.php 17 Jul 2004 23:14:01 -0000 1.344
@@ -1058,9 +1058,9 @@
} else {
$to[0] = '_';
}
-
$str = str_replace($from, $to, $str);
- return preg_replace('#[^' . PAT_FILENAME . ']#i', '', $str);
+ $str = preg_replace('#[^' . PAT_FILENAME . ']#i', '', $str);
+ return trim($str, $to[0]);
}
/** Print a footer below the list of entries
|