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

Automated installer for Drupal incorrectly renames database name via javascript

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Using the automated installer for Drupal (PHP5) with CiviCRM 1.8.11248

      The installer form:
      /sites/all/modules/civicrm/drupal/install/index.php
      or more specifically the template that is included:
      /sites/all/modules/civicrm/drupal/install/template.html
      has some javascript that renames the database name that is entered (for Drupal and CiviCRM databases) by stripping out any characters that are not A-Za-z0-9_

      This is really annoying for anyone who has a database name that includes other characters. For example, the host I was working on for a client automatically prefixes all database names with the account name followed by a '-' (hyphen), so I was unable to enter the correct database name into the installer form.
      web91-civicrm turns into web91civicrim, and then I get an error that the database can not be accessed.

      lines 69 and 77 of template.html have the following script which should be removed:
      onchange="this.value = this.value.replace(/[^A-Za-z0-9_]+/g,'');"

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              rkendall Ross Kendall
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5 minutes
                5m
                Remaining:
                Remaining Estimate - 5 minutes
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified