Skip to content

Commit

Permalink
Item1476: a little enhancement and history update
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/DebugLogPlugin@3573 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GilmarSantosJr authored and GilmarSantosJr committed Apr 20, 2009
1 parent 1d9cc91 commit 1424e87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/System/DebugLogPlugin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Many thanks to the following sponsors for supporting this work:
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] |
| Plugin Version: | 0 (20 Apr 2009) |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 20 Apr 2009 | Ported to Foswiki -- Foswiki:Main.WillNorris |
| 20 Apr 2009 | Ported to Foswiki -- Foswiki:Main.WillNorris and Foswiki:Main.GilmarSantosJr |
| Dependencies: | None |
| Plugin Home: | http://foswiki.org/Extensions/DebugLogPlugin |
| Support: | http://foswiki.org/Support/DebugLogPlugin |
Expand Down
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/DebugLogPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@ sub writeTEXT {
$Current_web.'.'.$Current_topic, $Current_user, $session,
Foswiki::Func::formatTime(time(), '$ye:$mo:$day:$hours:$minutes:$seconds', 'gmtime'), rand()
));
my $tickfile = '>'.$dir.'/'.$file;
my $tickfile = $dir.'/'.$file;

Foswiki::Func::writeDebug( "$tickfile" ) if $debug;

$tickfile =~ /^(.*)$/; #TODO: need to remove this and untaint at the right source
$tickfile = $1;

open( TICK, $tickfile);
open( TICK, '>', $tickfile) or warn $!;
Foswiki::Func::getCgiQuery()->save(\*TICK); #save the CGI query params
print TICK "\n==============\n";
print TICK $text; #a nothing :)
Expand Down

0 comments on commit 1424e87

Please sign in to comment.