Changeset 897


Ignore:
Timestamp:
Dec 9, 2006, 1:57:31 PM (15 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.

File:
1 edited

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;
Note: See TracChangeset for help on using the changeset viewer.