Moodle replaces questionmark in URL in query results for non-admin users

Re: Moodle replaces questionmark in URL in query results for non-admin users

by Jim Wagner -
Number of replies: 0

This caused us quite a lot of frustration. Not sure whether it's the new version of the plugin or Moodle 3.7. 

I made a change to moodle/blocks/configurable_reports/reports/sql/report.class.php at about line 130:

Before:
                    foreach ($arrayrow as $ii => $cell) {
                        $cell = format_text($cell, FORMAT_HTML, array('trusted' => true, 'noclean' => true, 'para' => false));
                        $arrayrow[$ii] = str_replace('QUESTIONMARK', '?', $cell);
                    }
After:
                    foreach ($arrayrow as $ii => $cell) {
                        $cell = format_text($cell, FORMAT_HTML, array('trusted' => true, 'noclean' => true, 'para' => false));
                        $cell = str_replace('%5B', '[', $cell); // NSO jjw - added
                        $cell = str_replace('%5D', ']', $cell); // NSO jjw - added
                        $arrayrow[$ii] = str_replace('QUESTIONMARK', '?', $cell);
                    }