dépôts
/
ptitvelo
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] ~version 3.0.7-->3.0.10
[ptitvelo/web/www.git]
/
www
/
plugins-dist
/
svp
/
action
/
teleporter.php
diff --git
a/www/plugins-dist/svp/action/teleporter.php
b/www/plugins-dist/svp/action/teleporter.php
index
499a933
..
e3f7386
100644
(file)
--- a/
www/plugins-dist/svp/action/teleporter.php
+++ b/
www/plugins-dist/svp/action/teleporter.php
@@
-25,10
+25,11
@@
* true si l'opération est correctement réalisée
*/
function action_teleporter_composant_dist($methode,$source,$dest,$options=array()){
* true si l'opération est correctement réalisée
*/
function action_teleporter_composant_dist($methode,$source,$dest,$options=array()){
-
# Si definie a '', le chargeur est interdit ; mais on n'aurait de toutes
# facons jamais pu venir ici avec toutes les securisations faites :^)
# Si definie a '', le chargeur est interdit ; mais on n'aurait de toutes
# facons jamais pu venir ici avec toutes les securisations faites :^)
- if (!_DIR_PLUGINS_AUTO) die('jamais');
+
+ if (!preg_match(','.substr(_DIR_LIB,0,-1).',',$dest) && !_DIR_PLUGINS_AUTO)
+ die('Vous ne pouvez pas télécharger, absence de _DIR_PLUGINS_AUTO');
// verifier que la methode est connue
if (!$teleporter = charger_fonction($methode,"teleporter",true)){
// verifier que la methode est connue
if (!$teleporter = charger_fonction($methode,"teleporter",true)){