[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Mon May 27 10:12:19 EDT 2013
raeburn Mon May 27 14:12:19 2013 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Bug 6649.
- Don't escape datakey in lonnet::restore when namespace is "courserequests".
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1223 loncom/lonnet/perl/lonnet.pm:1.1224
--- loncom/lonnet/perl/lonnet.pm:1.1223 Tue May 21 18:57:45 2013
+++ loncom/lonnet/perl/lonnet.pm Mon May 27 14:12:19 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1223 2013/05/21 18:57:45 raeburn Exp $
+# $Id: lonnet.pm,v 1.1224 2013/05/27 14:12:19 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4796,9 +4796,12 @@
if ($stuname) { $home=&homeserver($stuname,$domain); }
if (!$symb) {
- unless ($symb=escape(&symbread())) { return ''; }
+ return if ($namespace eq 'courserequests');
+ unless ($symb=escape(&symbread())) { return ''; }
} else {
- $symb=&escape(&symbclean($symb));
+ unless ($namespace eq 'courserequests') {
+ $symb=&escape(&symbclean($symb));
+ }
}
if (!$namespace) {
unless ($namespace=$env{'request.course.id'}) {
@@ -8766,6 +8769,9 @@
$namevalue.=&escape($key).'='.&freeze_escape($$storehash{$key}).'&';
}
$namevalue=~s/\&$//;
+ unless ($namespace eq 'courserequests') {
+ $datakey = &escape($datakey);
+ }
$result = &reply("store:$udom:$uname:$namespace:$datakey:".
$namevalue,$uhome);
}
More information about the LON-CAPA-cvs
mailing list