Changeset 31029


Ignore:
Timestamp:
03/12/15 20:25:53 (4 years ago)
Author:
rvelices
Message:

fix bug on variants with quotes

Location:
extensions/rv_autocomplete
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_autocomplete/admin/functions.inc.php

    r28597 r31029  
    309309        else 
    310310        { 
    311                 $okey = $params['key']; 
     311                $okey = stripslashes($params['key']); 
    312312                if (!isset($rules[$okey])) 
    313313                        return new PwgError(WS_ERR_INVALID_PARAM, 'no rule to update'); 
     
    347347        $rules = rvac_load_variant_rules(); 
    348348 
    349         $key = $params['key']; 
     349        $key = stripslashes($params['key']); 
    350350        if (empty($key)) 
    351351                return new PwgError(WS_ERR_INVALID_PARAM, 'empty key'); 
  • extensions/rv_autocomplete/main.inc.php

    r28153 r31029  
    11<?php /* 
    22Plugin Name: RV autocomplete 
    3 Version: 2.7.a 
     3Version: 2.7.b 
    44Description: Autocompletes the quick search with albums, tags or custom suggestions 
    55Plugin URI: http://piwigo.org/ext/extension_view.php?eid=694 
Note: See TracChangeset for help on using the changeset viewer.