mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 00:15:00 +02:00
- fix some bugs in imageset editing, includes [Bug #2269]
git-svn-id: file:///svn/phpbb/trunk@6080 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3562bc5580
commit
f04a3349e6
@ -1232,11 +1232,14 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
|||||||
global $db, $user, $phpbb_root_path, $cache, $template;
|
global $db, $user, $phpbb_root_path, $cache, $template;
|
||||||
|
|
||||||
$this->page_title = 'EDIT_IMAGESET';
|
$this->page_title = 'EDIT_IMAGESET';
|
||||||
$update = (isset($_POST['update'])) ? true : false;
|
$update = (isset($_POST['update'])) ? true : false;
|
||||||
$imgname = (!empty($_POST['imgname'])) ? htmlspecialchars($_POST['imgname']) : '';
|
$imgname = request_var('imgname', '');
|
||||||
$imgpath = (isset($_POST['imgpath'])) ? htmlspecialchars($_POST['imgpath']) : '';
|
$imgpath = request_var('imgpath', '');
|
||||||
$imgsize = (!empty($_POST['imgsize'])) ? true : false;
|
$imgsize = request_var('imgsize', false);
|
||||||
$imgwidth = (isset($_POST['imgwidth'])) ? intval($_POST['imgwidth']) : '';
|
$imgwidth = request_var('imgwidth', 0);
|
||||||
|
|
||||||
|
$imgname = preg_replace('#[^a-z0-9\-+_]#i', '', $imgname);
|
||||||
|
$imgpath = str_replace('..', '.', $imgpath);
|
||||||
|
|
||||||
if ($imageset_id)
|
if ($imageset_id)
|
||||||
{
|
{
|
||||||
@ -1383,7 +1386,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
|||||||
|
|
||||||
$imgsize_bool = (!empty($imgname) && ($imgsize || preg_match('#\*\d+#', $$imgname))) ? true : false;
|
$imgsize_bool = (!empty($imgname) && ($imgsize || preg_match('#\*\d+#', $$imgname))) ? true : false;
|
||||||
|
|
||||||
$img_info = explode('*', $imgname);
|
$img_info = (!empty($imgname)) ? explode('*', $$imgname) : array();
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'S_EDIT_IMAGESET' => true,
|
'S_EDIT_IMAGESET' => true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user