@@ -367,6 +367,8 @@ function init()
367
367
$ this ->allow_rewrite = ($ this ->db_info ->use_rewrite == 'Y ' ? TRUE : FALSE );
368
368
369
369
// set locations for javascript use
370
+ $ url = array ();
371
+ $ current_url = self ::getRequestUri ();
370
372
if ($ _SERVER ['REQUEST_METHOD ' ] == 'GET ' )
371
373
{
372
374
if ($ this ->get_vars )
@@ -386,17 +388,21 @@ function init()
386
388
$ url [] = $ key . '= ' . urlencode ($ val );
387
389
}
388
390
}
389
- $ this ->set ('current_url ' , self ::getRequestUri () . '? ' . join ('& ' , $ url ));
391
+
392
+ $ current_url = self ::getRequestUri ();
393
+ if ($ url ) $ current_url .= '? ' . join ('& ' , $ url );
390
394
}
391
395
else
392
396
{
393
- $ this -> set ( ' current_url ' , $ this ->getUrl () );
397
+ $ current_url = $ this ->getUrl ();
394
398
}
395
399
}
396
400
else
397
401
{
398
- $ this -> set ( ' current_url ' , self ::getRequestUri () );
402
+ $ current_url = self ::getRequestUri ();
399
403
}
404
+
405
+ $ this ->set ('current_url ' , $ current_url );
400
406
$ this ->set ('request_uri ' , self ::getRequestUri ());
401
407
}
402
408
@@ -1157,6 +1163,7 @@ function _setRequestArgument()
1157
1163
{
1158
1164
continue ;
1159
1165
}
1166
+ $ key = htmlentities ($ key );
1160
1167
$ val = $ this ->_filterRequestVar ($ key , $ val );
1161
1168
1162
1169
if ($ requestMethod == 'GET ' && isset ($ _GET [$ key ]))
0 commit comments