Changeset 915 for trunk/wiki.cgi
- Timestamp:
- 12/17/06 17:22:39 (2 years ago)
- Files:
-
- 1 modified
-
trunk/wiki.cgi (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wiki.cgi
r897 r915 38 38 # Note $q->param('keywords') gives you the entire param string. 39 39 # We need this to do URLs like foo.com/wiki.cgi?This_Page 40 my $node = $q->param('id') || $q->param('title') || $q->param('keywords') || "";40 my $node = $q->param('id') || $q->param('title') || $q->param('keywords') || ''; 41 41 $node = $formatter->node_param_to_node_name( $node ); 42 42 43 43 # If we did a post, then CGI->param probably hasn't fully de-escaped, 44 44 # in the same way as a get would've done 45 if($q->request_method() eq "POST") { 45 my $request_method = $q->request_method() || ''; 46 if($request_method eq 'POST') { 46 47 $node = uri_unescape($node); 47 48 }
