Changeset 48560 in spip-zone
- Timestamp:
- Jun 7, 2011, 9:19:59 PM (10 years ago)
- Location:
- _core_/plugins/mots
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/mots/mots_autoriser.php
r46241 r48560 83 83 if (!preg_match(',^(\w+)\|[0-9]+$,',$associer_objet,$match)) 84 84 return false; 85 $where = "tables_liees REGEXP '(^|,)". $match[1]."($|,)'";85 $where = "tables_liees REGEXP '(^|,)".addslashes(table_objet($match[1]))."($|,)'"; 86 86 } 87 87 // si pas de groupe de mot qui colle, pas le droit -
_core_/plugins/mots/prive/objets/liste/mots_associer.html
r48507 r48560 6 6 <B_groupes> 7 7 <ul> 8 <BOUCLE_groupes(GROUPES_MOTS){tables_liees==#ENV{objet} }{par titre}>8 <BOUCLE_groupes(GROUPES_MOTS){tables_liees==#ENV{objet}|table_objet}{par titre}> 9 9 <li class="editer associer_mot groupe_mots[(#UNSEUL|=={oui}|oui)unseul][(#OBLIGATOIRE|=={oui}|oui)obligatoire][ (#ID_GROUPE|in_any{#GET{groupes_vus}|explode{','}}|?{'vu','nonvu'})]"> 10 10 <label for="ajouter_lien-groupe#ID_GROUPE">#TITRE</label>
Note: See TracChangeset
for help on using the changeset viewer.