projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds type information to the subclass-defined method 'fetch' of PlFeed, to ensure...
[platal.git]
/
classes
/
csvimporter.php
diff --git
a/classes/csvimporter.php
b/classes/csvimporter.php
index
6590df4
..
0f576a0
100644
(file)
--- a/
classes/csvimporter.php
+++ b/
classes/csvimporter.php
@@
-239,7
+239,7
@@
class CSVImporter
}
/** Handle insertion form
}
/** Handle insertion form
- * @param $page Pl
atal
Page to process
+ * @param $page PlPage to process
* @param $url URI of the page
* @param $field Editable fields
*/
* @param $url URI of the page
* @param $field Editable fields
*/
@@
-330,6
+330,7
@@
class CSVImporter
$fields[] = $key;
}
if ($current == 'valid' && Env::has('csv_valid')) {
$fields[] = $key;
}
if ($current == 'valid' && Env::has('csv_valid')) {
+ S::assert_xsrf_token();
$this->run($_SESSION['csv_action'], $insert, $update);
$page->assign('csv_done', true);
$this->cleanSession($sesfields);
$this->run($_SESSION['csv_action'], $insert, $update);
$page->assign('csv_done', true);
$this->cleanSession($sesfields);