mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
RSA: fix namespacing for caught exceptions
This commit is contained in:
parent
5c78bf4c06
commit
698efd030a
@ -732,7 +732,7 @@ class RSA
|
||||
foreach (self::$fileFormats as $format) {
|
||||
try {
|
||||
$components = $format::load($key, $this->password);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$components = false;
|
||||
}
|
||||
if ($components !== false) {
|
||||
@ -745,7 +745,7 @@ class RSA
|
||||
$format = self::$fileFormats[$format];
|
||||
try {
|
||||
$components = $format::load($key, $this->password);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$components = false;
|
||||
}
|
||||
}
|
||||
@ -902,7 +902,7 @@ class RSA
|
||||
}
|
||||
try {
|
||||
$components = $format::load($key, $this->password);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$components = false;
|
||||
}
|
||||
if ($components !== false) {
|
||||
@ -915,7 +915,7 @@ class RSA
|
||||
$format = self::$fileFormats[$format];
|
||||
try {
|
||||
$components = $format::load($key, $this->password);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$components = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user