Changeset 897 for trunk/wiki.cgi

Show
Ignore:
Timestamp:
12/09/06 13:57:31 (2 years ago)
Author:
nick
Message:

CGI->param() behaves differently on post and get, so if we have a post with a node ID, de-escape it as the get would've done.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wiki.cgi

    r867 r897  
    4141    $node = $formatter->node_param_to_node_name( $node ); 
    4242 
     43    # If we did a post, then CGI->param probably hasn't fully de-escaped, 
     44    #  in the same way as a get would've done 
     45    if($q->request_method() eq "POST") { 
     46        $node = uri_unescape($node); 
     47    } 
     48 
     49    # Grab our common parameters 
    4350    my $action       = $q->param('action')  || 'display'; 
    4451    my $commit       = $q->param('Save')    || 0;