Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17623

Mailing hash generated that returns true for is_numeric

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.6
    • Fix Version/s: Unscheduled
    • Component/s: CiviMail
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      A mailing hash has been generated (2061002e91909771) that returns true for is_numeric.

      This results in viewing the mailing in the browser e.g. via /civicrm/mailing/view?reset=1&id=2061002e91909771 failing.

      This is tracked down to civicrm/CRM/Mailing/Page/View.php and the function run that uses a couple of is_numeric checks to determine whether a mailing id or hash has been passed to it via $id.

      If such a hash can be generated then the is_numeric checks aren't sufficient. Either the hash generator needs to check that there isn't a single 'e' present (or perhaps no letters at all), or this run function at least needs different checks used. I will be looking at the latter for now.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oskylark Owen Pearson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: