• R/O
  • HTTP
  • SSH
  • HTTPS

pukiwiki: Commit


Commit MetaInfo

Revision49b668749d39a9a1275e9b7f80abe7d5ade922a1 (tree)
Time2016-01-21 02:31:11
Authorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

Support simple page name expression with '&'-params as query string

For example, a URL "/?FrontPage&a=b&c=d" is recognized as "FrontPage"
page with a=b and c=d parammeteers.

Change Summary

Incremental Difference

--- a/lib/init.php
+++ b/lib/init.php
@@ -354,6 +354,7 @@ if (! isset($vars['cmd']) && ! isset($vars['plugin'])) {
354354
355355 $get['cmd'] = $post['cmd'] = $vars['cmd'] = 'read';
356356
357+ $arg = preg_replace("#^([^&]*)&.*$#", "$1", $arg);
357358 if ($arg == '') $arg = $defaultpage;
358359 $arg = rawurldecode($arg);
359360 $arg = strip_bracket($arg);
Show on old repository browser