Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problème liste déroulante #74

Closed
boillatlucas opened this issue Oct 25, 2016 · 2 comments
Closed

problème liste déroulante #74

boillatlucas opened this issue Oct 25, 2016 · 2 comments
Milestone

Comments

@boillatlucas
Copy link

Bonjour,
Je veux rajouter un champs type "liste déroulante", jusque là tout va bien.
En revanche quand je veux remplir cette liste, on me retourne une erreur serveur HTTP 500.
Voici l'extrait du php-errors.log :
2016-10-25 14:46:09 [2@SRV-EIE] *** PHP Notice(8): Undefined index: ddtype Backtrace : plugins\fields\front\commondropdown.php:4

Pas d'erreur SQL et Javascript


Hello,
I want to add a field type "drop-list", it is good.
However when I want to complete this list, it returns me an HTTP 500 server error.
Here is the extract from php-errors.log:
2016-10-25 14:46:09 [2@SRV-EIE] *** PHP Notice(8): Undefined index: ddtype Backtrace : plugins\fields\front\commondropdown.php:4

No SQL and Javascript error

@boillatlucas
Copy link
Author

problème résolu
dans glpi\plugins\fields\front\commondropdown.php les realpath posaient problème
voici le code modifié.
`<?php

include "../../../inc/includes.php";
$path = PLUGINFIELDS_FRONT_PATH . '/' . $_GET['ddtype'] . '.php';
if (strpos(realpath($path), realpath(PLUGINFIELDS_FRONT_PATH)) === 0) {
include_once $path;
} else {
throw new \RuntimeException('Attempt to load unsecure or missing ' . $path .'!');
}
`

trasher added a commit that referenced this issue Nov 3, 2016
@trasher trasher added this to the 1.3.2 milestone Nov 28, 2016
@trasher
Copy link
Contributor

trasher commented Nov 28, 2016

Will be fixed in the 1.3.2 release.

@trasher trasher closed this as completed Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants