Révision 3a832cbc
Ajouté par Jocelyn Delande il y a environ 11 ans
ajax/rm_reference.php | ||
---|---|---|
13 | 13 |
$vals = $validator->sane_values(); |
14 | 14 |
|
15 | 15 |
// temp test code |
16 |
$pano = site_point::get($vals['panorama']);
|
|
16 |
$pano = site_point::get(urldecode($vals['panorama']));
|
|
17 | 17 |
|
18 | 18 |
$ref_point_name = urldecode($vals['ref_point']); |
19 | 19 |
$ref_point = RefPoint::get($ref_point_name); |
... | ... | |
26 | 26 |
http_response_code(400); |
27 | 27 |
echo var_dump($validator->errors()); |
28 | 28 |
} |
29 |
|
|
29 | 30 |
// Test url : clear ;curl 'http://localhost/~jocelyn/panorama/ajax/add_reference.php?x=42&y=42&panorama=pano_couttolenc_bords_jointifs&ref_point=%C3%89glise%20saint-jacques' |
30 | 31 |
|
31 | 32 |
?> |
Formats disponibles : Unified diff
Added sanity checks