Plugin Directory

Changeset 3158718


Ignore:
Timestamp:
09/27/2024 11:10:46 AM (18 months ago)
Author:
ABCdatos
Message:

API key format changes

Location:
ai-content-creator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ai-content-creator/trunk/admin/opciones.php

    r3157211 r3158718  
    511511    if ( ! empty( $input[ $setting ] ) ) {
    512512        // Comprueba si la clave API tiene el formato correcto.
    513         if ( ! preg_match( '/^(sk\-)?[a-z0-9]{32,96}$/i', $input[ $setting ] ) &&
    514         ! preg_match( '/^(sk\-project\-)?[a-z0-9]{32,96}$/i', $input[ $setting ] ) &&
    515         ! preg_match( '/^(sk\-proj\-)?[a-z0-9]{32,96}$/i', $input[ $setting ] )
     513        if ( ! preg_match( '/^(sk\-)?[a-zA-Z0-9_]{32,96}$/', $input[ $setting ] ) &&
     514        ! preg_match( '/^(sk\-project\-)?[a-zA-Z0-9_]{32,96}$/', $input[ $setting ] ) &&
     515        ! preg_match( '/^(sk\-proj\-)?[a-zA-Z0-9_]{32,96}$/', $input[ $setting ] )
    516516        ) {
    517517            $error_code     = 'aicc_apikoai defectuosa';
  • ai-content-creator/trunk/ai-content-creator.php

    r3157211 r3158718  
    44 * Plugin URI:  https://taller.abcdatos.net/ai-content-creator-wordpress/
    55 * Description: Creates new posts content using AI API
    6  * Version:     1.2.4
     6 * Version:     1.2.5-dev
    77 * Author:      ABCdatos
    88 * Author URI:  https://taller.abcdatos.net/
Note: See TracChangeset for help on using the changeset viewer.