aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-04-10 20:01:10 +0200
committerArthurHoaro <arthur@hoa.ro>2017-04-10 20:01:10 +0200
commit6a19124a0970dfd5744c4a193b5d907ba85b323e (patch)
treead886ea19ba4d38cea43ad52faf264da0383db58 /index.php
parentc8cb5c282402e3f19497ba9e57ac967a4bdefa1b (diff)
downloadShaarli-6a19124a0970dfd5744c4a193b5d907ba85b323e.tar.gz
Shaarli-6a19124a0970dfd5744c4a193b5d907ba85b323e.tar.zst
Shaarli-6a19124a0970dfd5744c4a193b5d907ba85b323e.zip
Use raw bytes for upload size hidden input
Diffstat (limited to 'index.php')
-rw-r--r--index.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/index.php b/index.php
index 8f26c390..1e255583 100644
--- a/index.php
+++ b/index.php
@@ -1489,7 +1489,22 @@ function renderPage($conf, $pluginManager, $LINKSDB)
1489 1489
1490 if (! isset($_POST['token']) || ! isset($_FILES['filetoupload'])) { 1490 if (! isset($_POST['token']) || ! isset($_FILES['filetoupload'])) {
1491 // Show import dialog 1491 // Show import dialog
1492 $PAGE->assign('maxfilesize', get_max_upload_size(ini_get('post_max_size'), ini_get('upload_max_filesize'))); 1492 $PAGE->assign(
1493 'maxfilesize',
1494 get_max_upload_size(
1495 ini_get('post_max_size'),
1496 ini_get('upload_max_filesize'),
1497 false
1498 )
1499 );
1500 $PAGE->assign(
1501 'maxfilesizeHuman',
1502 get_max_upload_size(
1503 ini_get('post_max_size'),
1504 ini_get('upload_max_filesize'),
1505 true
1506 )
1507 );
1493 $PAGE->renderPage('import'); 1508 $PAGE->renderPage('import');
1494 exit; 1509 exit;
1495 } 1510 }