forked from qt-creator/qt-creator
Wizards: Do some input validation on repository URLs
Fixes: QTCREATORBUG-18935 Change-Id: Ie2103cbe2899ea23caaedd4a6350c78b5f380ab9 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "commitdata.h"
|
||||
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
#include <coreplugin/iversioncontrol.h>
|
||||
#include <vcsbase/vcsbaseclient.h>
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
@@ -381,16 +382,10 @@ private:
|
||||
QFutureSynchronizer<void> m_synchronizer; // for commit updates
|
||||
};
|
||||
|
||||
class GitRemote {
|
||||
class GitRemote : public Core::IVersionControl::RepoUrl
|
||||
{
|
||||
public:
|
||||
GitRemote(const QString &url);
|
||||
|
||||
QString protocol;
|
||||
QString userName;
|
||||
QString host;
|
||||
QString path;
|
||||
quint16 port = 0;
|
||||
bool isValid = false;
|
||||
GitRemote(const QString &location);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
Reference in New Issue
Block a user