aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-08-15 19:22:55 +0300
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-08-15 19:22:55 +0300
commitdc764892213e8d1cb458621910aa8d0ce0a3eb7e (patch)
tree6e0c3eb23902f771c98e0ae4c0484cfc051ebbe6
parentb738bea9ca03c7c05e8c159b9c2f48fb40e58ccd (diff)
downloadwallabag-dc764892213e8d1cb458621910aa8d0ce0a3eb7e.tar.gz
wallabag-dc764892213e8d1cb458621910aa8d0ce0a3eb7e.tar.zst
wallabag-dc764892213e8d1cb458621910aa8d0ce0a3eb7e.zip
minimum of control on server side added
-rwxr-xr-xinc/poche/Poche.class.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 09a9f5ff..bcf2ddeb 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -906,7 +906,7 @@ class Poche
906 */ 906 */
907 public function import() { 907 public function import() {
908 908
909 if ( isset($_FILES['file']) ) { 909 if ( isset($_FILES['file']) && $_FILES['file']['tmp_name'] ) {
910 Tools::logm('Import stated: parsing file'); 910 Tools::logm('Import stated: parsing file');
911 911
912 // assume, that file is in json format 912 // assume, that file is in json format
@@ -976,6 +976,9 @@ class Poche
976 } 976 }
977 Tools::logm('Import of articles finished: '.$i.' articles added (w/o content if not provided).'); 977 Tools::logm('Import of articles finished: '.$i.' articles added (w/o content if not provided).');
978 } 978 }
979 else {
980 $this->messages->add('s', _('Did you forget to select a file?'));
981 }
979 //file parsing finished here 982 //file parsing finished here
980 983
981 //now download article contents if any 984 //now download article contents if any