projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2012ea6
)
fix more typos
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Oct 2005 10:44:34 +0000
(10:44 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Oct 2005 10:44:34 +0000
(10:44 +0000)
SVN-Revision: 2094
openwrt/package/webif/files/usr/lib/webif/webif.sh
patch
|
blob
|
history
diff --git
a/openwrt/package/webif/files/usr/lib/webif/webif.sh
b/openwrt/package/webif/files/usr/lib/webif/webif.sh
index 973099cd0be908fc6139893222b62bb323b6172b..a2c889158a196ff0f247d795dfef93fb6f8392cc 100644
(file)
--- a/
openwrt/package/webif/files/usr/lib/webif/webif.sh
+++ b/
openwrt/package/webif/files/usr/lib/webif/webif.sh
@@
-17,6
+17,12
@@
equal() {
*) return 255 ;;
esac
}
+neq() {
+ case "$1" in
+ "$2") return 255 ;;
+ *) return 0 ;;
+ esac
+}
# very crazy, but also very fast :-)
exists() {
( < $1 ) 2>&-
@@
-100,8
+106,8
@@
Pragma: no-cache
$_head
$ERROR
EOF
- empty "$REMOTE_USER" &&
equal
"${SCRIPT_NAME#/cgi-bin/}" "webif.sh" && {
- empty "$FORM_passwd"
&&
{
+ empty "$REMOTE_USER" &&
neq
"${SCRIPT_NAME#/cgi-bin/}" "webif.sh" && {
+ empty "$FORM_passwd"
||
{
echo '<pre>'
(
echo "$FORM_passwd1"