Uncaught TypeError: Cannot access offset of type string on string in phpwiki/lib/stdlib.php:172

Christof Meerwald via Phpwiki-talk <[email protected]> Sat, 17 Feb 2024 17:46:46 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
--hlb9ImdJ4b3Zlz26
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

This one can be triggered by going to PageHistory and then clicking on
"RSS" (note that "RSS2" or "Atom" don't generate a page-specific
history there, but that's another issue). The second argument to
WikiURL should definitely be an array and not a string, patch attached.


Christof

-- 

https://cmeerw.org                             sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

--hlb9ImdJ4b3Zlz26
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="wikiurl-arg.diff"

Index: lib/plugin/RecentChanges.php
===================================================================
--- lib/plugin/RecentChanges.php	(revision 11078)
+++ lib/plugin/RecentChanges.php	(working copy)
@@ -118,7 +118,7 @@
     {
         return WikiURL(
             $this->include_versions_in_URLs() ? $rev : $rev->getPage(),
-            '',
+            array(),
             $this->_absurls
         );
     }

--hlb9ImdJ4b3Zlz26
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--hlb9ImdJ4b3Zlz26
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Phpwiki-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpwiki-talk

--hlb9ImdJ4b3Zlz26--