Permalink
Browse files

strip off both possible directory separators with rtrim

  • Loading branch information...
1 parent f294583 commit b7f5e08148c893de45f057318e3daa1fa65ebf79 Brian Fenton committed Oct 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/KLogger.php
View
@@ -137,7 +137,7 @@ public static function instance($logDirectory = false, $severity = false)
*/
public function __construct($logDirectory, $severity)
{
- $logDirectory = rtrim($logDirectory, '/');
+ $logDirectory = rtrim($logDirectory, '\\/');
if ($severity == self::OFF) {
return;

0 comments on commit b7f5e08

Please sign in to comment.