Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Error in Registration page if a file type field is used in the form.

$
0
0
In version PHPrunner 9.8 and using PHP 7.1, when a file-type field is used in the registration page of the form -for the user's photo that is registered-, the generated code is wrong, because when uploading the file in that field the system "demands" that it be identified in the application.

I have solved it by making these changes in the source of the generator:

File: mfhandler.php

line 96:

If ($pageType != PAGE_REGISTER){
if(!isLogged() && $pageType != PAGE_REGISTER || !$havePermission)
{ 
	HeaderRedirect("login", "", "message=expired"); 
	return;
}
}


The first and last line are the added ones.

Is there another better solution?

Viewing all articles
Browse latest Browse all 2586

Trending Articles