Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Reg: #1464 #1470

Merged
merged 9 commits into from Nov 29, 2016
Merged

Fix Reg: #1464 #1470

merged 9 commits into from Nov 29, 2016

Conversation

DawoudIO
Copy link
Contributor

@DawoudIO DawoudIO commented Nov 27, 2016

New DTO class for keeping URLs - fixed #1464

- new dto
- fixes bad URL for sRootPath
- throws error if invalid URL
- using - SystemURLs
- removed sDocuemntRoot Var
- moved string cleanup into the SystemURLs class
- Checked for error from SystemURLs and dispaly error page
@DawoudIO DawoudIO added this to the 2.4.0 milestone Nov 27, 2016
@@ -60,6 +62,13 @@ function mysql_failure($message)
exit();
}
}
try {
SystemURLs::init($sRootPath, $URL, dirname(dirname(__FILE__)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -60,6 +62,13 @@ function mysql_failure($message)
exit();
}
}
try {
SystemURLs::init($sRootPath, $URL, dirname(dirname(__FILE__)));
$sRootPath = SystemURLs::getRootPath();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is only to maintain backward-compatibility without a full refactor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

@crossan007
Copy link
Contributor

I get this on a clean run :-(

image

@DawoudIO
Copy link
Contributor Author

DawoudIO commented Nov 28, 2016

are you sure this was from this PR? that error msg was from #1472


private static function isValidRootPath()
{
if (stripos(self::$rootPath, "http") !== true ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you trying to do here? this function always returns false...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are making sure that the rootPath does not have a http in it

@DawoudIO DawoudIO merged commit e1542c0 into develop Nov 29, 2016
@DawoudIO DawoudIO deleted the SystemURLs-Class branch November 29, 2016 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants