Make datapopup handle links with a revision or other action in them
authorAndreas Boehler <andreas@aboehler.at>
Tue, 23 Sep 2014 20:56:16 +0200
changeset 3 88d936428bed
parent 2 7e2f87288501
child 4 dffe53229d26
Make datapopup handle links with a revision or other action in them
(remove everything after "?")
action.php
--- a/action.php	Fri Sep 12 07:03:48 2014 +0200
+++ b/action.php	Tue Sep 23 20:56:16 2014 +0200
@@ -46,6 +46,7 @@
         global $INPUT;
 
         $link = $INPUT->str('link');
+        $link = preg_replace('/\?.*/', '', $link);
         
         $fields = explode(',',$this->getConf('fields'));
         $fields = array_map('trim',$fields);