|
From: <var...@us...> - 2021-08-06 10:24:33
|
Revision: 10449
http://sourceforge.net/p/phpwiki/code/10449
Author: vargenau
Date: 2021-08-06 10:24:32 +0000 (Fri, 06 Aug 2021)
Log Message:
-----------
lib/plugin/WikiAdminUtils.php: If needed, clean URL of previous message, remove "?" and after
Modified Paths:
--------------
trunk/lib/plugin/WikiAdminUtils.php
Modified: trunk/lib/plugin/WikiAdminUtils.php
===================================================================
--- trunk/lib/plugin/WikiAdminUtils.php 2021-08-06 09:58:24 UTC (rev 10448)
+++ trunk/lib/plugin/WikiAdminUtils.php 2021-08-06 10:24:32 UTC (rev 10449)
@@ -107,7 +107,12 @@
$message = call_user_func(array(&$this, $method), $request, $args);
- $url = WikiURL($args['return_url'],
+ // If needed, clean URL of previous message, remove '?' and after
+ $return_url = $args['return_url'];
+ if (strpos($return_url, '?')) {
+ $return_url = substr($return_url, 0, strpos($return_url, '?'));
+ }
+ $url = WikiURL($return_url,
array('warningmsg' => $message),
'abs_path');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|