Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-50891

is_web_crawler should be moved to useragent class

    XMLWordPrintable

    Details

      Description

      We have an is_web_crawler() function in lib/setuplib.php which performs tests on the USER_AGENT. These should really be moved to core_useragent() where similar checks of this kind normally live and are thoroughly unit tested.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Lyons
              Reporter:
              dobedobedoh Andrew Lyons
              Peer reviewer:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Integrator:
              David Monllaó David Monllaó
              Tester:
              Rajesh Taneja Rajesh Taneja
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                16/Nov/15