Plugin Directory

Changeset 445367


Ignore:
Timestamp:
09/29/2011 06:15:56 PM (15 years ago)
Author:
sebstein
Message:

fix: correctly validate Google API key as it may also contain a dash

Location:
g-crossposting/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • g-crossposting/trunk/gplus-crosspost.php

    r445341 r445367  
    341341function g_crossposting_check_apikey($given_apikey) {
    342342    // api key should be a mixture of digits and letters
    343     if (!preg_match('/^[0-9a-z_]{39}$/i', $given_apikey)) {
     343    if (!preg_match('/^[0-9a-z_-]{39}$/i', $given_apikey)) {
    344344        return FALSE;
    345345    }
  • g-crossposting/trunk/readme.txt

    r445341 r445367  
    6060== Changelog ==
    6161
     62= 1.0.1 =
     63* fix: correctly validate Google API key as it may also contain a dash
     64
    6265= 1.0 =
    6366* initial version
Note: See TracChangeset for help on using the changeset viewer.