Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
smradius
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shail
smradius
Commits
e39e1efc
Commit
e39e1efc
authored
16 years ago
by
Robert Anderson
Browse files
Options
Downloads
Patches
Plain Diff
* Return the raw value for rawattr() and fallback to the translated value if there is no raw value
parent
229145b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Radius/Packet.pm
+5
-1
5 additions, 1 deletion
Radius/Packet.pm
with
5 additions
and
1 deletion
Radius/Packet.pm
+
5
−
1
View file @
e39e1efc
...
...
@@ -131,7 +131,11 @@ sub rawattr
my
@attr
=
$self
->
_attributes
;
for
(
my
$i
=
$#attr
;
$i
>=
0
;
$i
--
)
{
return
$attr
[
$i
][
2
]
if
$attr
[
$i
][
0
]
eq
$name
;
# Check if this is the attr we're after
if
(
$attr
[
$i
][
0
]
eq
$name
)
{
# If it is, return the raw attribute if it exists, else return the nicer dict one
return
defined
(
$attr
[
$i
][
2
])
?
$attr
[
$i
][
2
]
:
$attr
[
$i
][
1
];
}
}
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment