[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/plugin plugin.cpp
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/plugin plugin.cpp |
Date: |
Thu, 08 Jun 2006 05:40:32 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 06/06/08 05:40:32
Modified files:
plugin : plugin.cpp
Log message:
Add error message when a URL can't be parsed.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/plugin.cpp?cvsroot=gnash&r1=1.31&r2=1.32
Patches:
Index: plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- plugin.cpp 8 Jun 2006 05:24:02 -0000 1.31
+++ plugin.cpp 8 Jun 2006 05:40:32 -0000 1.32
@@ -648,8 +648,11 @@
if (eq == string::npos) {
eq = opts.size();
}
+ // Some URLs we can't parse for odd reasons, so this prevents
+ // Firefox from crashing in those cases.
if (end == string::npos) {
- return NPERR_NO_ERROR;
+ dbglogfile << "ERROR: Can't parse URL!" << endl;
+ return NPERR_INVALID_PARAM;
} else {
name = opts.substr(start, eq);
value = opts.substr(eq+1, end-eq-1);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/plugin plugin.cpp,
Rob Savoye <=