mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +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
@ -1233,10 +1233,13 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
|
||||
$this->page_title = 'EDIT_IMAGESET';
|
||||
$update = (isset($_POST['update'])) ? true : false;
|
||||
$imgname = (!empty($_POST['imgname'])) ? htmlspecialchars($_POST['imgname']) : '';
|
||||
$imgpath = (isset($_POST['imgpath'])) ? htmlspecialchars($_POST['imgpath']) : '';
|
||||
$imgsize = (!empty($_POST['imgsize'])) ? true : false;
|
||||
$imgwidth = (isset($_POST['imgwidth'])) ? intval($_POST['imgwidth']) : '';
|
||||
$imgname = request_var('imgname', '');
|
||||
$imgpath = request_var('imgpath', '');
|
||||
$imgsize = request_var('imgsize', false);
|
||||
$imgwidth = request_var('imgwidth', 0);
|
||||
|
||||
$imgname = preg_replace('#[^a-z0-9\-+_]#i', '', $imgname);
|
||||
$imgpath = str_replace('..', '.', $imgpath);
|
||||
|
||||
if ($imageset_id)
|
||||
{
|
||||
@ -1383,7 +1386,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
|
||||
$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(
|
||||
'S_EDIT_IMAGESET' => true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user